How can I load a local json file?

后端 未结 3 1794
悲哀的现实
悲哀的现实 2021-01-15 14:07

Is there a way to configure firefox using about:config to allow local file access (for demo purposes)?

Specifically using FF12, I need to be able to

3条回答
  •  臣服心动
    2021-01-15 15:02

    You can flip the security.fileuri.strict_origin_policy preference in about:config. But that opens up some security holes; moving your JSON to be in a child directory of the directory the HTML is in is a much better idea.

提交回复
热议问题