When cookies are created on the client side in javascript by setting document.cookie (), what effect does the βsafeβ attribute have on them?
In particular:
- cookies created by the client sent to the server in the "Cookie:" header of subsequent requests?
can be changed by the client using the following Set-Cookie headers from the server?
in the case of the previous two questions, considering that yes, the security attribute prevents this if the connection to the server is not HTTPS?
if the page not loaded via HTTPS contains javascript that tries to create cookies with a secure attribute, are cookies allowed?
Do major browsers do this all in sequence?
source
share