Hi, everything works fine in editor but once my project is uploaded (specifically in this case to itch.io) i get the error:
sw.js:8 [SW] Error fetching 'https://html-classic.itch.zone/html/10557755/' (403 )
Also, I notice that none of the file opening (export or import ) functionality works on itch.io. There are no errors for this after the initial sw.js:8 error.
You can try the project here at https://pixel-z.itch.io/fastpalette.
Just create a palette with a couple of clicks then hit export gpl and you will see that this functionality does not work.
The SAME version hosted at https://www.fastpalette.studio/ does not seem to have this problem and the file viewer works as expected.
Anyone know what might be causing this or how to fix it?
Thanks
EDIT: The sw.js error seems to be specifically an access error:
<Error>
<Code>AccessDenied</Code>
<Message>Access denied.</Message>
<Details>Anonymous caller does not have storage.objects.get access to the Google Cloud Storage object. Permission 'storage.objects.get' denied on resource (or it may not exist).</Details>
</Error>
EDIT 2: It seems the problem is something to do with absolute/relative paths. See here:
https://itch.io/docs/creators/html5#common-pitfalls
However, I think this might be a bug in construct 3 itself rather than my project.
sw.js:8 [SW] Error fetching 'https://html-classic.itch.zone/html/10559081/' (403 )
romFileList @ sw.js:8
await in CreateCacheFromFileList (async)
UpdateCheck @ sw.js:11
await in UpdateCheck (async)
(anonymous) @ sw.js:12