Skip to main content

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

Can't embed Godot 4.0 application into <iframe>

A topic by rapfamily4 created Feb 14, 2024 Views: 763 Replies: 4
Viewing posts 1 to 3

Hello, I made a Godot 4 application and, after uploading the HTML export on Itch.io, I couldn't embed it on my personal site.

The direct link to the uploaded export works. I used <iframe> in my website and I get this error line: 


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)


Is there any way to embed it without setting those features on my server? As far as I can tell, these features are already available on Itch.io.

(+1)

I recommend you read this post

https://itch.io/t/3288882/cant-embed-into-iframe-sharedarraybuffer

Alright, time to convert my Godot 4 project into Godot 3.5 :')

Thank you for your reply.

(+1)

Also read this:

https://godotengine.org/article/dev-snapshot-godot-4-3-dev-3/#single-threaded-we...

Short version: starting at version 4.3, you can choose single-threaded web exports, which should work for you.

I'll give it a try! Thank you!

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