Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Cross-origin header issue

A topic by HTV04 created Oct 13, 2021 Views: 958 Replies: 1
Viewing posts 1 to 2
(1 edit) (+1)

Hi, I'm having trouble getting my game to work when played in-browser: https://htv04.itch.io/funkin-rewritten


It uses love.js, which requires these HTTP headers that Google enforced a few months back for Chrome (the game gives a SharedArrayBuffer error otherwise):

Cross-Origin-Opener-Policy: same-origin

Cross-Origin-Embedder-Policy: require-corp


Could these headers be enabled for my game? As far as I know, it's the only thing that's preventing it from starting.

I want to know as well.

I've tried adding a `.htaccess` file to my project's root folder.
with this content: `
Header set Cross-Origin-Embedder-Policy "require-corp"
Header set Cross-Origin-Opener-Policy "same-origin"
`

It did not work. but based on the post below it might should have.

https://itch.io/t/1364129/qs-about-cors-and-adding-headers-in-htaccess-file-on-r...

https://stackoverflow.com/questions/66638988/cross-origin-policies-coop-and-coep...

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.