The 403 error typically appears if you are trying to reference a path does not exist by your game. (It’s not the more commonly seen 404 error due to the security policy of the storage bucket)
Please read the common pitfalls section of our HTML guide here: https://itch.io/docs/creators/html5#common-pitfalls
Specifically these points:
- Attempting to access a path that doesn’t point to a file – If you attempt to load a resource that doesn’t point to a file the request will fail. This includes attempting to access a folder (paths ending in
/
) instead of a specific file. Due to our security settings, our system will return a403
error instead of the more commonly seen404
. (In Chrome you may seenet::ERR_ABORTED 403
).- Using absolute paths instead of relative paths – Your project is hosted on a subdirectory on our HTML CDN. If you use an absolute path in your sourcecode then it will cause the browser to attempt to make a request outside of the path of your project, and the request will fail. Absolute paths are paths that start with a
/
. You must use relative paths to access other files you have provided in your project.- Mismatched cases when referencing files – The server that hosts your project’s files is case-sensitive. MacOS and Windows computers allow for files to be loaded case-insensitive. It’s possible your project works locally on your computer but fails after you upload it. Please check that all files you reference use the exact case that is shown on your file manager. This is commonly associated with a
net::ERR_ABORTED 403
error in Chrome. If you have a file namedHello.png
, you must reference it asHello.png
, things likehello.png
andHELLO.png
will not work because the case does not match.