英文:
Failed to load resource: the server responded with a status of 404 on Facebook Instant Game
问题
我正在使用HTML5开发Facebook即时游戏,并且在加载index.html页面上链接的CSS和JavaScript文件时遇到了问题,它显示在Chrome控制台上:
> "Failed to load resource: the server responded with a status of 404"
这是权限的问题还是我漏掉了什么?所有文件都在根目录上。请查看这里的图像,您可以看到控制台错误。
英文:
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
> "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.
答案1
得分: 0
我已经找到问题所在。我在标头中有以下HTML元素:
<base href="/">
将其更改为
<base href="">
就可以解决问题了!
英文:
So 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!
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论