Free tool · Runs in your browser
Cross-origin isolation checker: fix “SharedArrayBuffer is not defined”.
Paste your game page's response headers and see at once whether it is cross-origin isolated, which header is missing or wrong, and what to change. Then pick your server and copy a ready COOP and COEP config. The side panel shows the live status of this browser tab.
- COOP & COEP analysis
- Live crossOriginIsolated check
- Config for 7 servers
- Nothing uploaded
How do I make a page cross-origin isolated?
Serve the HTML page with two response headers: Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Embedder-Policy: require-corp (or credentialless), over HTTPS. Every cross-origin resource the page loads must then allow it with CORS or Cross-Origin-Resource-Policy. When both headers are right, window.crossOriginIsolated is true and SharedArrayBuffer and WebAssembly threads work.
The headers, value by value
| Header | Value | Effect |
|---|---|---|
| Cross-Origin-Opener-Policy | same-origin | Required. The page no longer shares a window group with cross-origin popups and openers. |
| Cross-Origin-Opener-Policy | same-origin-allow-popups | Not enough for isolation. Often used for sign-in popups. |
| Cross-Origin-Embedder-Policy | require-corp | Isolates. Cross-origin resources load only with CORS or Cross-Origin-Resource-Policy. |
| Cross-Origin-Embedder-Policy | credentialless | Isolates. Cross-origin requests without CORS load without cookies instead of failing. |
| Cross-Origin-Resource-Policy | cross-origin | Set on asset responses (a CDN, an API) so isolated pages on other origins may embed them. |
| …-Report-Only versions | any | Report problems to an endpoint without enforcing anything. Useful before switching on. |
How to fix “SharedArrayBuffer is not defined”
Serve the game over HTTPS
Isolation only works in a secure context: HTTPS, or http://localhost while you develop.
Add COOP and COEP to the HTML page
Send Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Embedder-Policy: require-corp on the response of the page that runs the game. Use the config generator above for your server.
Fix blocked cross-origin files
Open DevTools and look for resources blocked by COEP. Give them CORS headers or Cross-Origin-Resource-Policy: cross-origin, load them from your own origin, or switch COEP to credentialless.
Confirm in the console
Reload the game and type crossOriginIsolated in the console. When it prints true, SharedArrayBuffer and WebAssembly threads are available.
Why browsers ask for isolation
SharedArrayBuffer lets several threads read and write the same memory. That is what WebAssembly threads, multi-threaded physics and parallel asset decoding are built on. It also makes very precise timers possible, which side-channel attacks like Spectre can use to read memory from another site in the same process.
So browsers only hand out SharedArrayBuffer to pages that prove they do not mix with other sites: the page opts out of sharing windows (COOP) and every resource it embeds opts in (COEP). The price is that third-party embeds, ads and some sign-in popups need extra headers or stop working on that page.
Game engines that need it
Web builds that use threads need an isolated page: Godot 4 web exports with thread support, Unity WebGL builds with multithreading turned on, and any Emscripten build compiled with pthreads. Single-threaded builds run without these headers.
Some hosts cannot set headers, for example plain static hosting. Then the options are a host that can (Netlify, Cloudflare Pages, Vercel and most VPS servers can), the portal's own switch where it has one, or a single-threaded build. Read more about publishing on itch.io and test your WebGL and WebGPU support.
Frequently asked questions
What does window.crossOriginIsolated mean?
It is a read-only browser flag. It is true when the current page was served with COOP same-origin and COEP require-corp or credentialless in a secure context. When it is true, SharedArrayBuffer and high-precision timers are available to the page.
Why is SharedArrayBuffer not defined in my game?
Because the page that runs the game is not cross-origin isolated. Paste its response headers into the checker above: it shows which of COOP and COEP is missing or has the wrong value, and gives you the lines to add to your server config.
Should I use require-corp or credentialless?
require-corp is the strict choice and works in all current browsers, but every cross-origin file needs CORS or Cross-Origin-Resource-Policy. credentialless is easier when you load files from servers you do not control, because they load without cookies instead of being blocked; check that the browsers you target support it.
Can this tool read the headers of any URL?
No. A browser is not allowed to read another site's response headers, and this tool never sends anything to a server. Copy the headers from DevTools (Network tab, the first request) or from curl -I and paste them in.
Why is this page itself not isolated?
Isolation blocks embeds that do not opt in, so most sites, this one included, do not turn it on. The headers only matter on the page that runs your game.
EvonX AI game maker
Got the asset? Now make the game.
Describe your game in one sentence and EvonX builds it: code, art, sound and a link you can share. Free to start, no download, plays on any phone.