I tried to make a game with Godot 4 and export it to HTML following this video tutorial. It works as shown on this page. It's told that you have to check the SharedArrayBuffer
option, to make it work, or it will show an error. Then I want to embed the game in an iframe on my own web, unfortunately, the error that is supposed to show if you uncheck the SharedArrayBuffer option, appears when it's embedded in the iframe. From my widget page, the preview is not working, it shows:
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)
I think the problem is (maybe) in the iframe because the direct link is working.