-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Godot Web Build reloads infinitely on github.io #97580
Comments
hey - I've been following this project. tested this and got the same result on ChromeOS Screen.recording.2024-09-28.10.46.57.AM.webm |
It is caused by following code (note the godot/misc/dist/html/full-size.html Lines 153 to 171 in 76a1359
CC @adamscott As workaround, you can try disabling the "ensure cross origin isolation headers", or PWAs as a whole, in export options @Swarkin |
I cannot do this as I need CORS headers for threads to work... |
For me the following error occurs in the console for the running page:
|
This comment was marked as outdated.
This comment was marked as outdated.
I haven't done any threaded web apps before, so my assessment might be wrong. But as far as I can read online (search for "github pages cross origin isolation"), you need to do some additional work to enable cross origin isolation headers on github pages. Here is one example I found: https://docs.wasmer.io/sdk/wasmer-js/how-to/coop-coep-headers But the infinite reload is still something that should be fixed (show an error message on the web page instead). |
This might be something that happens before the engine can load properly (it seems at least one error happens immediately in the service worker) so might be something we don't have any power over, but not sure exactly where things are breaking exactly |
I don't have access to a computer this weekend, but I'll see what I can do Monday. |
https://github.com/gzuidhof/coi-serviceworker gets around the use of headers on hosters where you cannot change them |
We do handle this directly in the Web export template since #86089. |
cc @adamscott ^ |
@Swarkin Did you rename |
I did, do I need to rename everything containing |
@Swarkin Try exporting the project using The service worker fails to load |
Seems like that was the actual issue, even though Im pretty sure that it worked this way in the past? Anyways thank you! |
There's definitely something wrong when a file can't be loaded. I'll try to fix the infinite loading. |
Weird. I tried to rename in a small test project I'll create a PR for the documentation and close this issue. Then, if the problem returns, I'll be there to fix it. |
Tested versions
4.4.dev2
master branch as of 28.09.2024
System information
Any
Issue description
Recording.2024-09-28.115226.mp4
Steps to reproduce
Minimal reproduction project (MRP)
Not a MRP but the project in question: https://github.com/Swarkin/wsclicker
The text was updated successfully, but these errors were encountered: