Open aldy120 opened 5 years ago
You can make browser to store a cookie by using Set-Cookie
header in HTTP response. If the domain is specify in the Set-Cookie
header, then this cookie can also be sent when you visit all the subdomain.
For example, If Set-Cookie: a=1; Domain=example.com
in a response headers, the next request to example.com
, photo.example.com
or tw.photo.example.com
will carry this cookie a=1
to your host.
The cookie name-value pair must be in the first place of Set-Cookie
header.
For example, Set-Cookie: a=1; Domain=example.com
works, but Set-Cookie: Domain=example.com a=1;
does not work.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie
CloudFront custom policy can specify only one CIDR.
http-only
means you cannot control cookies by JavaScriptsecure
means it only send by HTTPS
An example to use node.js SDK to create a signed cookie.