#Hosting export in different domain than website

5 messages · Page 1 of 1 (latest)

marble haven
#

I was wondering, is it possible to host the files for the HTML5 export on for example, mysecondarysite.com, and then in mysite.com create <iframe source="mysecondarysite.com">? I tried to do it, but I get an error mysecondarysite.com refused to connect
And in the shell it says:

Failed to load resource: net::ERR_BLOCKED_BY_RESPONSE.NotSameOriginAfterDefaultedToSameOriginByCoep

Both sites are hosted at netlify.com and have this .toml:

[[headers]]
for = "/*"

[headers.values]
Cross-Origin-Opener-Policy = "same-origin"
Cross-Origin-Embedder-Policy = "require-corp"

Using Godot4 btw, if it makes any difference

radiant harbor
#

You wouldn't want "same-origin" as the value for cross origin

marble haven
#

So my only guess is it is not allowed to get the game iframed from somewhere else

devout oxide
#

I think you can probably get this to work if you have the headers set up correctly. I don't think you need those headers on the site with the iframe