I have exported the web version of my Godot 4, it is in a folder on my local drive.
Because of the SharedArrayBuffer dependency I can not just double-click in the index.html file. If I do so I see this error:
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)
How can I run it in local?
This python script allows you to open a simple web server running in port 8000:
Add this code in a file called
server.pyin the same folder or your web export (where theindex.htmlis)Then go to the folder with the terminal and execute:
Then in your browser you can write the URL:
Source