Hosting godot game on github pages

I want to host a godot game on github pages. Also i am not using cloudflare pages (tell me if i should). The image is the error i get. How can i fix this?
No description
2 Replies
Rob M.
Rob M.•11mo ago
Mate, this is such a wrong discord server for this question. But I'll try to help you. Firstly, skip github pages and use cloudflare pages 🙂 Secondly, it looks like you are using Godot 4, right? Just try to use the third version for the web export. My personal advice, if you want to create web games, use web game engines like Construct 3 or PlayCanvas.
Erisa
Erisa•11mo ago
Reminds me of this previous case https://community.cloudflare.com/t/how-could-i-make-the-html-support-sharedarraybuffer/581161/5 You can change headers by creating a _headers file in your GitHub repo following the format documented here https://developers.cloudflare.com/pages/platform/headers/ I can't tell you which headers exactly will help, for the case above it was
/*
Access-Control-Allow-Origin: *
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
/*
Access-Control-Allow-Origin: *
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
up to you to check with Godot whether that's the expected headers or whether there are some alterations needed. As a sidenote if it helps you decide, you can't customise headers on GitHub Pages. So better to use Cloudflare Pages for this.
Want results from more Discord servers?
Add your server