I am trying to upload the alpha version of my game to itch.io, where I can easily restrict access to it with a password. I managed to compile the game to HTML through CSIDE, no problem. The HTML file plays locally on Firefox, no problem.
Per itch.io’s instructions, I zip the index.html file with the header image and upload the zip file. I get this error:
Permission denied to access property “side” on cross-origin object.
From a little research on other people who encountered similar errors on their HTML5 games, and from asking on the Discord server, I put together that this is security error must trace to an element in the compiled HTML that references a source on another server (most likely Github). Firefox and Chrome are apparently tightening security around XSS due to frequent security vulnerabilities, which makes sense, but it does leave me up a certain creek.
I can see ChoiceScript games from 2018 or thereabouts on itch.io, and they work just fine, so this is a (relatively) recent change. Is there a workaround for this? Who has recently worked with compiled HTML CSGs and can advise me?
I just did a test upload of one of my CS projects with embedded images I ran through CSIDE today to itch and it works perfectly. @dwsnee recommend following the instructions I linked you a while back where I explained how to upload to itch. Just upload the html file. No zipping, external images etc.
(Edit- using the compiler that comes with choicescript and zipping it with images in a file does appear to now be the most reliable way to upload games with images to itch.)
I solved this problem by not compiling through CSIDE. I used the actual ChoiceScript tool and that HTML worked fine, with or without zipping it. As long as I used real ChoiceScript and not CSIDE, the compiled game gave me no problems. And there was no need to include text files instead of png images.