Failed to load resource: the server responded with a status of 404 on Facebook Instant Game.

huangapple go评论124阅读模式
英文:

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"

这是权限的问题还是我漏掉了什么?所有文件都在根目录上。请查看这里的图像,您可以看到控制台错误。
Failed to load resource: the server responded with a status of 404 on Facebook Instant Game.

英文:

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.
Failed to load resource: the server responded with a status of 404 on Facebook Instant Game.

答案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!

huangapple
  • 本文由 发表于 2020年1月6日 23:03:43
  • 转载请务必保留本文链接:https://go.coder-hub.com/59614380.html
  • facebook-instant-games
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定