Please open the about:config page and disable the "security.fileuri.strict_origin_policy" option

来源:互联网 发布:化学物质数据库 编辑:程序博客网 时间:2024/06/05 07:14

今天在测试FCKeditor的时候,提示:

Your browser security settings don't allow FCKeditor to be opened from the local filesystem.

Please open the about:config page and disable the "security.fileuri.strict_origin_policy" option; then load this page again.

Check our FAQ for more information.

但是在IE里面是可以的,郁闷了很久最后终于发现了问题。

通常我们在js跨域的时候,会提示“Access to restricted URI denied

但是在我的FCKeditor是放在本地的。也是调用不了。因为 Firefox3.0 之后不能加载本地的JavaScript文件了;

 

Firefox对于本地文件也进行了同源访问的安全设置,配置参数是:security.fileuri.strict_origin_policy。这个新的设置只是在firefox 3才被加入,并且默认是开启的。我们只需要将security.fileuri.strict_origin_policy设置为false;设置方法:

在Firefox地址栏里面输入:about:config;搜索security.fileuri.strict_origin_policy

1 0
原创粉丝点击