Web Security · Senior · Question 20 of 75
Which two headers make a page cross-origin isolated?
- 1
Access-Control-Allow-OriginandVary - 2
Strict-Transport-SecurityandX-Frame-Options - ✓Correct answer:
Cross-Origin-Opener-Policy: same-originandCross-Origin-Embedder-Policy: require-corp(orcredentialless)
Explanation
Isolation gives the page its own process and enables features like SharedArrayBuffer and precise timers, which need protection from Spectre.