You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Cookie] CookieContainer has issues with cookies set to a different path than the current request uri path #22372
When a server sends back a cookie with a path different than the current request uri, CookieContainer throws an exception indicating that the path portion of the cookie is invalid. For example:
HttpClient send a request to /Home/About
The server answers with a redirect response to /tfp/Identity/signinsignup/... and sets a cookie to /signin-oidc
I believe this is due to the fact that an old version of the spec required any path on any cookie set by the server to be a prefix path of the current request URI. This doesn't seem to be the case in the latest version of the standard.
changed the title [-]CookieContainer has issues with cookies set to a different path than the current request uri path[/-][+][Cookie] CookieContainer has issues with cookies set to a different path than the current request uri path[/+]on May 8, 2018
Activity
javiercn commentedon Jun 20, 2017
@Eilon
davidsh commentedon Jun 20, 2017
Current .NET Framework and .NET Core System.Net.Cookie does not handle RFC6265 yet.
related to: https://github.com/dotnet/corefx/issues/18013
Fix CookieContainer bug (https://github.com/dotnet/corefx/issues/2125…
[-]CookieContainer has issues with cookies set to a different path than the current request uri path[/-][+][Cookie] CookieContainer has issues with cookies set to a different path than the current request uri path[/+]caesar-chen commentedon May 11, 2018
Tracked in dotnet/corefx#29651.
Test for #21250 -- Cookie should set path based on per RFC 6265
Test for #27520
Test for #21250 -- Cookie should set path based on per RFC 6265
Test for #27520
Adapt RFC 6265 in path handling for cookies (#39250)
Adapt RFC 6265 in path handling for cookies (dotnet#39250)