HTTP · Cookies, CORS and security headers
Allow a cross-origin site (CORS)
Lets a browser app on another origin read the response. Avoid * for requests with credentials.
Access-Control-Allow-Origin: https://app.example.com
More cookies, cors and security headers commands
- Set a secure session cookie
- Answer a CORS preflight
- Strict-Transport-Security: force HTTPS
- Content-Security-Policy: limit what loads
- X-Content-Type-Options: stop type guessing
- Block clickjacking
All cookies, cors and security headers commands · HTTP cheatsheet