-
Notifications
You must be signed in to change notification settings - Fork 191
Allow a way to mark all cookies as "HTTP only" and "SSL required" by default #42
Comments
And rename the "secure" cookie option as part of this. |
Removing @GrabYourPitchforks as the assignee 😄 (Unless you like, you know, really want to do it 😄 ) |
@blowdart in this case |
That doesn't make it true though. |
Agreed, but we can't change the RFC. Renaming our APIS that set this value will just case confusion about what's being set. |
Seems like this would be a feature of Hosting |
Any proposals on how? High jacking the |
I think so. |
I would be interested in taking this on. I am already doing some work with the Secure flag on cookies for aspnet/Session#28 |
@blowdart how important is this for beta 6 (i.e. do we need this now?) |
It's a big security regression, so it would be really really nice to have as soon as possible, but I leave the exact release to your discretion. If you have time now, then please do now. |
Ok I will try to take a look this week |
Preference for making this a middleware rather than embedding it in hosting. |
Added suggestion - why not change the cookie class to make cookies http only for default, and make them "secure" by default if the request is over https. |
Not going to happen for beta 6 at this point |
@HaoK lets have a little design meeting before you tackle this. |
@HaoK will you be able to look into this? |
|
Test Map behavior |
Namespace: Microsoft.AspNet.CookiePolicy in security repo stand alone package. |
This is nice! |
5cc1fea40045041f77a6bb2bd23e231e24f82da7 |
@HaoK I just want to confirm. Im currently migrating code. .net 4.5 mvc: so in .net core mvc, it should be this: is that correct? |
Comments on closed issues are not tracked, please open a new issue with the details for your scenario. |
Basically, this would be an equivalent to the
<httpCookies>
element in Web.config:Allows marking all cookies with these flags regardless of how the CookieOptions object is constructed. More info at http://msdn.microsoft.com/en-us/library/ms228262(v=vs.100).aspx.
The text was updated successfully, but these errors were encountered: