Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

add rules to cookies #53

Open
Baroshem opened this issue Nov 28, 2020 · 0 comments
Open

add rules to cookies #53

Baroshem opened this issue Nov 28, 2020 · 0 comments
Labels
enhancement New feature or request medium priority Indicates that the issue has medium priority

Comments

@Baroshem
Copy link
Contributor

Baroshem commented Nov 28, 2020

Feature Request

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

secure - this attribute tells the browser to only send the cookie if the request is being sent over HTTPS.
HttpOnly - this attribute is used to help prevent attacks such as cross-site scripting since it does not allow the cookie to be accessed via JavaScript.
domain - this attribute is used to compare against the domain of the server in which the URL is being requested. If the domain matches or if it is a sub-domain, then the path attribute will be checked next.
path - in addition to the domain, the URL path that the cookie is valid for can be specified. If the domain and path match, then the cookie will be sent in the request.
expires - this attribute is used to set persistent cookies since the cookie does not expire until the set date is exceeded

Teachability, Documentation, Adoption, Migration Strategy

https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite

What is the motivation / use case for changing the behavior?

@Baroshem Baroshem added enhancement New feature or request medium priority Indicates that the issue has medium priority labels Nov 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request medium priority Indicates that the issue has medium priority
Projects
None yet
Development

No branches or pull requests

1 participant