Web Export (Github)

Godot Version

4.2

Question

Hey! After a couple of months programming in Godot, I have made a game. I want to share it with my friends, but because of reasons, I can’t use Itch. I have a GitHub repo setup, with the exported file and all, but when I run the index.html file from my files, I get this error:
godot web error
(text for copy-paste, if needed):

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)

My goal is to have a playable version of my game on a GitHub page. I haven’t tried setting up the page ignoring the error, but I presume it won’t go well. I have seen this page as well, but it looks outdated.

Any help would be appreciated.

I don’t believe github pages intend to implement the headers required for Godot 4.x web exports, but 3.x will work. Itch.io does allow for Shared Array Buffer games, if that is okay.

Here’s a discussion requesting this feature being added to pages, one of the first comments says they found a work around but I haven’t tested it.

did you change the name of the file yet?

What should I have changed it to, and what should I have changed it from?

I had seen the workaround that they mentioned, but I was wondering if there was another way. I know that Itch does allow for it, but, as I said, it’s not an option for me.

still do NOT understand