-
Notifications
You must be signed in to change notification settings - Fork 447
New issue
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
Rpc http cookie behavior on V3 #5331
Conversation
src/WebJobs.Script/Workers/Rpc/MessageExtensions/RpcMessageExtensionUtilities.cs
Show resolved
Hide resolved
}), | ||
new Tuple<string, string, CookieOptions>("secondCookie", "cookieValue2", new CookieOptions() | ||
{ | ||
Path = "/", | ||
HttpOnly = true, | ||
MaxAge = TimeSpan.FromSeconds(20) | ||
MaxAge = TimeSpan.FromSeconds(20), | ||
SameSite = (SameSiteMode)(-1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be able to use the new enum value here instead (you may need to add an explicit reference to the package here)
@brettsam, we may need to go over the projects to make sure we're building against the right versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were trying to not update Script to use anything from 2.0, if I recall. Only WebHost moved forward.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was there a good reason for that? It will lead to behavior like this where we're building against an incorrect API
* change default to Unspecified * by default, an unspecified SameSite value shouldn't be added * use enum * update test to be more accurate * Add explicit reference to .NET core 3.1 for http features * update reference
* change default to Unspecified * by default, an unspecified SameSite value shouldn't be added * use enum * update test to be more accurate * Add explicit reference to .NET core 3.1 for http features * update reference
Prevents break but doesn't take full advantage of "samesite=none"
Complete fix here:
Azure/azure-functions-nodejs-worker#270
Addresses:
#4890