We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go version
$ go version 1.12.5
yes
go env
windows/amd64
$ go env
I am adding a new cookie as follows newCookie := &http.Cookie{ Name: MatchCookieName, Domain: GetRootDomain(r), MaxAge: CookieMaxAge, Expires: time.Now().Add(CookieMaxAge), Value: matchCookieAfter.EncodeToBase64(), SameSite: http.SameSiteNoneMode, Path: "/", }
It should not give any error, I do not get any errors for SameSiteLaxMode anf SameSiteNoneMode
Getting an undefined error for SameSiteNoneMode
The text was updated successfully, but these errors were encountered:
Because there is no SameSiteNoneMode. https://golang.org/pkg/net/http/#SameSite
SameSiteNoneMode
For further questions, please reach out to the forums in the Questions wiki page.
Sorry, something went wrong.
i see the changes getting added in https://github.com/golang/go/blob/master/src/net/http/cookie.go
type SameSite int
const ( SameSiteDefaultMode SameSite = iota + 1 SameSiteLaxMode SameSiteStrictMode SameSiteNoneMode ) when would this be updated.
When 1.13 is released.
No branches or pull requests
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?windows/amd64
go env
OutputWhat did you do?
I am adding a new cookie as follows
newCookie := &http.Cookie{
Name: MatchCookieName,
Domain: GetRootDomain(r),
MaxAge: CookieMaxAge,
Expires: time.Now().Add(CookieMaxAge),
Value: matchCookieAfter.EncodeToBase64(),
SameSite: http.SameSiteNoneMode,
Path: "/",
}
What did you expect to see?
It should not give any error, I do not get any errors for
SameSiteLaxMode anf SameSiteNoneMode
What did you see instead?
Getting an undefined error for SameSiteNoneMode
The text was updated successfully, but these errors were encountered: