Error uploading a compiled HTML to itch.io

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:

itch_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?

1 Like

Did you ever figure this out @Hazel ?

I’m having the same problem with my Vampire Jam game and only have a couple days to figure it out.

I can’t advance the game in either the viewport or fullscreen, though my landing page displays.

Why would you be zipping images with the html file? Just use cside to convert the image to a scene and don’t zip the file.

1 Like

If this is the same error as above (referencing CSIDE), PM me a compiled copy of your game and I’ll take a look tomorrow.

1 Like

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.)

2 Likes

These are the settings and file types you need to get a compiled CS game working correctly on itch.io

2 Likes

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.

3 Likes

I’d be grateful for a reproducer for this, if you have one. It sounds like a bug in CSIDE.

4 Likes

I blocked out a time tomorrow to recreate the HTML files.

3 Likes

Yes.

2 Likes