Browser & Web Performance · Middle · Question 51 of 75
A server reflects the request's Origin into Access-Control-Allow-Origin for an allowlist of sites. Which header should it also send?
- 1
Cache-Control: immutable - 2
Vary: Cookie - ✓Correct answer:
Vary: Origin
Explanation
Otherwise a CDN could cache the response with one origin's header and serve it to another origin, breaking CORS.