小书签打开空窗口
好的,我有一个可以打开远程网站的基本书签。但是,当我尝试打开本地开发网站时,它只会打开一个空白页面。我假设这与安全等有关。
我设置了书签来打开我的远程站点之一,gnull.com - 这工作正常。然后我将 gnull.com 设置为解析为 127.0.0.1 并更改了 IIS 中的绑定。这次的结果是打开一个新窗口,但它是空白的。当我查看发送的标头时,仅创建一个结果为“错误”且类型为“NS_ERROR_ABORT”的标头。
我在 Windows 7 上使用 Firefox 4。有谁知道如何设置书签来测试本地站点?该代码本身工作正常,因为我已经在其他实时网站上对此进行了测试,因此这似乎是一个浏览器安全功能。
Ok so I have a basic bookmarklet that opens remote websites. However when I try to open my local dev site it just opens to a blank page. I am assuming this has something to do with security etc.
I set the bookmarklet to open one of my remote sites, gnull.com - This worked fine. I then set gnull.com to resolve to 127.0.0.1 and changed my bindings in IIS. The result this time is that a new window opens however it is blank. When I look at the headers being sent only one is created with a result of 'error' and a type of 'NS_ERROR_ABORT'.
I am using Firefox 4 on Windows 7. Does anyone know how to setup bookmarklets for testing local sites? The code itself works fine since I have tested this with other live websites so this appears to be a browser security feature.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如我在评论中提到的,我发现问题出在 ABE - noscript 扩展的一个组件上。 ABE 阻止脚本访问本地资源,在我的例子中是本地网站。我在 noscript 选项中禁用了 ABE,一切正常。
So as I mentioned in the comment, I found the issue was with ABE - a component of the noscript extension. ABE blocks scripts from accessing local resources, in my case a local website. I disabled ABE in the noscript options and everything works fine.