Loading lesson…
Level 1 · Apprentice0 XP
Headers that make the web fast, keep users logged in, and keep sites apart.
Step 1 / 6
ProblemAfter a release, some users see the old JavaScript for a week. Meanwhile the new front end on app.shop.com cannot call api.shop.com: 'blocked by CORS policy'.
← → step
Before this: HTTP in depth
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Configure an API to allow exactly one front-end origin with credentials, and set Cache-Control on a static site: hashed assets cached a year, HTML no-cache. Verify with curl -I and the browser network panel.