Bonomi Posted January 6, 2020 Share Posted January 6, 2020 I'm developing a Facebook Instant Game using HTML5 and am having trouble loading the css and JavaScript files linked on the index.html page, it is showing Quote "Failed to load resource: the server responded with a status of 404" on the chrome console Is this a question of permissions or what am I missing? all files are on the root. Take a look at the image here you can see the console errors. Quote Link to comment Share on other sites More sharing options...
Vlados Posted January 6, 2020 Share Posted January 6, 2020 (edited) Check full address you try to get - be sure that your files are really available there. If you use spaces in file names, remove them. Also check that the files are uploaded on server with proper permissions - at least read. Edited January 6, 2020 by Vlados Quote Link to comment Share on other sites More sharing options...
Bonomi Posted January 6, 2020 Author Share Posted January 6, 2020 I figured out what the problem is. I had the following html element on the header: <base href="/"> Changing it to <base href=""> will do the trick! Thanks @Vlados Vlados 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.