Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

403 error

A topic by stevenroyals created Jul 26, 2021 Views: 921 Replies: 2
Viewing posts 1 to 3

I've tried to upload my dist folder to itch.io to publish my game but I get a 403 error message when I attempt to play the game online. 

GET https://v6p9d9t4.ssl.hwcdn.net/main.461d48e3.js net::ERR_ABORTED 403

 I think the index file might be working but it can't find the main.js file. This is the address showing for the index.html https://v6p9d9t4.ssl.hwcdn.net/html/4217763/dist/index.html

Thanks Steve

Admin

Please read our Common HTML pitfalls guide here, as it explains why you see the exact error you are getting: https://itch.io/docs/creators/html5#common-pitfalls

Using aboslute paths instead of relative paths — Your project is hosted on a subdirectory on our HTML5 CDN. If you use an absolute path in your sourcecode then the file your are trying to reference will not be found. This is commonly associated with a net::ERR_ABORTED 403 error in Chrome. Absolute paths are paths that start with a /. Try using relative paths instead.

Thanks for your help. I did manage to get the game uploaded, someone showed me how to alter the package.json file to get it to work. The game shows but all the text in the game is displayed in the wrong places, the sprites are ok. This screen shot shows what the game should and does look like when it is running on my own development server. The next screen shot shows you what happens when I upload it to itch.


This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.