CORS for Strapi Preview: Options, Tradeoffs, and Pitfalls

Strapi preview sounds simple until the browser gets involved. You have Strapi running on one origin, a frontend preview app on another, and an editor clicking “Preview” expecting instant results. Then the browser blocks your request because of CORS, cookies don’t stick, or your preview token leaks across environments. I’ve seen teams lose hours here because they treat CORS as a checkbox instead of a design choice. For Strapi preview, your CORS setup affects security, editor experience, and how much pain you’ll have when moving from local dev to staging and production. ...

October 30, 2026 · 7 min · headertest.com