Here’s a preview of one page of my site:
Access to fetch at ‘https://d33wubrfki0l68.cloudfront.net/js/44cbcd60c499472a782bd72195e2a9a5e2fc2621/alien/wasm_main.wasm’ from origin ‘https://61ced341f926ab000764071f--quizzical-fermi-9c8ee3.netlify.app’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
I’ve tried adding a netlify.toml file like this (at the top level of my repo), but although the build log suggests a header rule has been correctly parsed, from the error above it seems like the header is not being set on the wasm_main.wasm file above.
[[redirects]] from = "/*" to = "/index.html" status = 200 [[headers]] for = "/*" [headers.values] Access-Control-Allow-Origin = "*"