Quick answer: A threaded Godot web export needs SharedArrayBuffer, which browsers only expose on pages served with Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Embedder-Policy: require-corp over HTTPS or localhost. In Godot 4.3 and later the quickest fix is to leave Thread Support off in the Web export preset, which removes the requirement. If you need threads, or you are on Godot 4.0 to 4.2, make your host send those two headers.

The export finished, the files are uploaded, and the page shows a grey box listing features that are “missing” in a browser that is fully up to date. Nothing is wrong with the browser. The page was not served the way a multi-threaded WebAssembly build requires, so the browser withheld shared memory and Godot refused to start. Which fix applies depends on your Godot version and on whether your host lets you set response headers. This guide covers both routes, with configuration for nginx, Apache, Netlify, Vercel, Cloudflare Pages, GitHub Pages and itch.io, and the side effects the headers have on the rest of the page.

The exact error

Godot 4.3 and later print it like this in the page:

Error
The following features required to run Godot projects on the Web are missing:
Cross-Origin Isolation - Check that the web server configuration sends the correct headers.
SharedArrayBuffer - Check that the web server configuration sends the correct headers.

Godot 4.0 to 4.2 word the same two lines differently:

Error
The following features required to run Godot projects on the Web are missing:
Cross Origin Isolation - Check web server configuration (send correct headers)
SharedArrayBuffer - Check web server configuration (send correct headers)

The engine’s JavaScript loader runs a feature check before it downloads the .wasm file. It tests window.crossOriginIsolated and whether SharedArrayBuffer exists. If either fails, it shows this notice and stops, so the game never starts. A third line, Secure Context - Check web server configuration (use HTTPS), appears when the page is served over plain HTTP from anything other than localhost.

What causes it

Threads in WebAssembly share memory through SharedArrayBuffer. After the Spectre attacks, browsers stopped exposing it to ordinary pages. A page gets it back only when it is cross-origin isolated: a secure context whose main document was served with both of these response headers.

Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp

In practice the error comes from one of these, most common first:

  1. The host sends neither header. GitHub Pages, a default nginx or Apache site, an S3 bucket and most shared hosting behave this way.
  2. The project was exported with threads without meaning to. Every Godot 4.0 to 4.2 web export is threaded. A 4.3 or later preset with Thread Support ticked is too.
  3. The game runs inside an iframe on a page that is not isolated. The outer page needs the headers as well, and the iframe needs allow="cross-origin-isolated". This is the itch.io and web portal case.
  4. The headers are set on some responses but not the HTML document, for example on *.wasm only, or in an nginx location block that does not match index.html.
  5. The file was opened from disk. A file:// page is never isolated. Use a local server.

Which Godot versions need the headers

VersionNeeds cross-origin isolation
Godot 3.xOnly when the preset’s export type is Threads. The regular template does not.
Godot 4.0 to 4.2Always. There is no single-threaded web template.
Godot 4.3 and laterOnly when Variant > Thread Support is on in the Web preset. It is off by default.

How to check what the page is getting

Open the page, press F12 and type these in the Console:

crossOriginIsolated          // must be true
typeof SharedArrayBuffer     // must be "function"
isSecureContext              // must be true

Then open the Network tab, reload, click the first request (the HTML document) and read Response Headers. Both headers must be on that document. From a terminal:

curl -sI https://example.com/game/ | grep -i cross-origin

If the headers are present and crossOriginIsolated is still false, the page is inside an iframe whose parent is not isolated, or it is not a secure context.

Fix 1: export without threads (Godot 4.3 and later)

Open Project > Export, select the Web preset and, under Variant, make sure Thread Support is unticked. Export again and upload all the files, since the template itself changes. A build without threads needs HTTPS and nothing else, so it runs on GitHub Pages, itch.io, portals and any plain static host.

What you give up, according to the export option’s own documentation: the game is “more prone to performance and audio issues”. Everything runs on the browser’s main thread, so heavy frames can make audio stutter, and code that relies on Thread or WorkerThreadPool for parallel work does not get it. For most 2D and light 3D games this is the right trade. If audio crackles afterwards, see audio crackling on web exports.

On Godot 4.0 to 4.2 this option does not exist. Upgrade the project to 4.3 or later, or use Fix 2 or 3.

Fix 2: make the server send the headers

Apply the headers to every response for the game’s folder, the HTML document included.

nginx

location /game/ {
    add_header Cross-Origin-Opener-Policy "same-origin" always;
    add_header Cross-Origin-Embedder-Policy "require-corp" always;
}

An add_header inside a nested block replaces the ones inherited from the parent, so repeat both lines in any inner location that also adds headers.

Apache (.htaccess in the game folder, with mod_headers enabled)

<IfModule mod_headers.c>
    Header set Cross-Origin-Opener-Policy "same-origin"
    Header set Cross-Origin-Embedder-Policy "require-corp"
</IfModule>

Netlify and Cloudflare Pages (a file named _headers at the root of the published folder)

/*
  Cross-Origin-Opener-Policy: same-origin
  Cross-Origin-Embedder-Policy: require-corp

Vercel (vercel.json)

{
  "headers": [
    {
      "source": "/(.*)",
      "headers": [
        { "key": "Cross-Origin-Opener-Policy", "value": "same-origin" },
        { "key": "Cross-Origin-Embedder-Policy", "value": "require-corp" }
      ]
    }
  ]
}

Local testing

The editor’s Remote Debug > Run in Browser button starts its own server that already sends both headers, which is why a build can work there and fail once uploaded. To test an exported folder by hand, python -m http.server is not enough. Use a server that adds the headers. In Python:

from http.server import HTTPServer, SimpleHTTPRequestHandler

class Handler(SimpleHTTPRequestHandler):
    def end_headers(self):
        self.send_header("Cross-Origin-Opener-Policy", "same-origin")
        self.send_header("Cross-Origin-Embedder-Policy", "require-corp")
        super().end_headers()

HTTPServer(("localhost", 8060), Handler).serve_forever()

Or in Node, with no dependencies:

const http = require("http"), fs = require("fs"), path = require("path");
const types = { ".html": "text/html", ".js": "text/javascript",
                ".wasm": "application/wasm", ".png": "image/png" };

http.createServer((req, res) => {
  const name = req.url.split("?")[0];
  const file = path.join(__dirname, name === "/" ? "index.html" : name);
  fs.readFile(file, (err, data) => {
    if (err) { res.writeHead(404); return res.end(); }
    res.writeHead(200, {
      "Content-Type": types[path.extname(file)] || "application/octet-stream",
      "Cross-Origin-Opener-Policy": "same-origin",
      "Cross-Origin-Embedder-Policy": "require-corp",
    });
    res.end(data);
  });
}).listen(8060);

Run either from the export folder and open http://localhost:8060. Localhost counts as a secure context, so no certificate is needed. Both scripts are for your own machine only.

Fix 3: hosts that cannot send headers

GitHub Pages has no setting for custom response headers. If you must keep threads there, a service worker can add the headers in the browser.

Godot 4.3 and later. In the Web preset, enable Progressive Web App > Enabled and leave Ensure Cross Origin Isolation Headers on (it is on by default once PWA is enabled). The exported service worker rewrites every response with the two headers. On a visitor’s first load the page is not isolated yet, so the loader installs the service worker and reloads once; after that the game starts normally. Expect that one extra reload, and remember a service worker caches files, so bump the export when you update.

Godot 4.0 to 4.2. The same trick is available as the open-source coi-serviceworker script. Copy coi-serviceworker.js next to index.html (it must be on your own origin, not a CDN) and add this to the preset’s Head Include field:

<script src="coi-serviceworker.js"></script>

Service workers need HTTPS and do not run in some private browsing modes, so this is a fallback, not a replacement for real headers.

itch.io and web portals

On itch.io, open the project’s edit page and, under Embed options > Frame options, tick SharedArrayBuffer support. itch then serves your files from a separate domain with the isolation headers. Two things from itch’s own announcement are worth knowing. The game page that embeds your build uses Cross-Origin-Embedder-Policy: credentialless, which not every browser supports; the feature launched as Chrome only, so test the embedded page in Firefox and Safari before you rely on it. And because the files move to a different domain, saves stored in the browser under the old one are no longer visible. If the page still fails to load, see itch.io index not loading.

On portals such as Poki or CrazyGames you do not control the headers of the page or the CDN. Unless the portal’s documentation states that it provides cross-origin isolation, submit a build without threads.

Side effects of the headers on the rest of the page

Cross-Origin-Embedder-Policy: require-corp changes the rules for everything the page loads from another origin:

Cross-Origin-Embedder-Policy: credentialless is a softer variant: cross-origin requests are allowed without CORP but are sent without cookies. Chromium-based browsers and Firefox support it; Safari did not when this was written, so check the compatibility table on MDN before depending on it. Requests your game makes with HTTPRequest to another domain need CORS on that server in any web export, isolated or not.

How to confirm the fix

  1. Load the hosted URL in a private window, so no cached files or old service worker are involved.
  2. For a threaded build, check crossOriginIsolated is true in the console. For a build without threads, the game starting is the proof.
  3. Test Chrome, Firefox and Safari, on desktop and on a phone. Isolation support differs most on Safari and inside iframes.
  4. Test the page players will use. An itch.io embed, a portal frame and your own domain are three different environments.

If the game gets past this check and then shows a blank canvas, that is a separate problem: see a Godot web export that will not load and white or black screen on web exports.

What Bugnet can and cannot see here

This error stops the engine before any GDScript runs, so the Godot SDK inside your game cannot report it. The page can. If you use a custom HTML shell, load and initialise the Bugnet Web SDK in it and file a report from the branch where the shell’s own feature check fails (this is the call the Godot 4.3 shell makes):

const missing = Engine.getMissingFeatures({ threads: GODOT_THREADS_ENABLED });
if (missing.length !== 0) {
  Bugnet.reportBug("Web export: missing browser features",
                   missing.join("\n"), { category: "other" });
}

Reports with the same title stack into one entry with an occurrence count, and each carries the user agent, so you can see which browsers and embeds fail. Once the game runs, the in-game report form works in web exports like anywhere else. A known-issue entry titled with the exact error text on your public tracker gives players who search for it a browser to switch to.

Frequently asked questions

Why does my Godot web export say SharedArrayBuffer is missing?

The export uses threads, and browsers only provide SharedArrayBuffer to cross-origin isolated pages. The server must send Cross-Origin-Opener-Policy same-origin and Cross-Origin-Embedder-Policy require-corp over HTTPS, or you can export without threads in Godot 4.3 and later.

How do I fix the Cross Origin Isolation error on GitHub Pages?

GitHub Pages cannot send custom headers. In Godot 4.3 and later, export with Thread Support off, or enable the Progressive Web App option with Ensure Cross Origin Isolation Headers. On Godot 4.0 to 4.2, add the coi-serviceworker script to the page.

Does Godot 4.3 still need SharedArrayBuffer for web exports?

Only if you turn on Thread Support in the Web export preset. It is off by default from Godot 4.3, and a build without threads needs only HTTPS, so it runs on hosts that cannot send the isolation headers.

How do I enable SharedArrayBuffer on itch.io?

On the project’s edit page, tick SharedArrayBuffer support under Embed options, Frame options. The embedded game page relies on a header that not all browsers support, so test in Firefox and Safari, or export without threads to avoid the requirement.

Why did my ads or embedded videos stop working after adding the headers?

Cross-Origin-Embedder-Policy require-corp blocks cross-origin resources and iframes that do not opt in with CORS or Cross-Origin-Resource-Policy headers. Most ad and video embeds do not, so they fail on an isolated page. Exporting without threads avoids the headers entirely.

On Godot 4.3 or later, check the Thread Support box in the Web preset before touching the server. If it is off and you still see this error, you uploaded an old build.