Disable javascript's domain restrictions in FF 7.0

不打扰是莪最后的温柔 提交于 2019-12-12 01:48:44

问题


I am developing a small html + JS app for my own use and being ability to access IFrame's content or opened windows' contect with Javascript would greatly improve my productivity.

Is it possible to disable the cross domain restrictions imposed by Firefox 7.0, so that I will be able to modify contents of what is displayed in an iframe?


回答1:


I think I remember a similar issue a while ago in FF. This is worth a try:

There's a file in your user profile called prefs.js. On my machine its located:

C:\Users\simon\AppData\Roaming\Mozilla\Firefox\Profiles\aoagj1zo.default

In the file are a bunch of lines like this:

user_pref("accessibility.typeaheadfind.flashBar", 0);
user_pref("app.update.lastUpdateTime.addon-background-update-timer", 1317146699);

Try adding this line:

user_pref("capability.policy.default.XMLHttpRequest.open", "allAccess");

You should probably close FF, edit this file, then reopen FF.



来源:https://stackoverflow.com/questions/7598738/disable-javascripts-domain-restrictions-in-ff-7-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!