简体   繁体   English

从iframe内部调试gwt(X-Frame-Options)

[英]Debug gwt from inside iframe (X-Frame-Options)

When I try to debug my gwt app that's inside an iframe (note that gwt codserv and webserv are all local) I'm having permissions issues. 当我尝试调试iframe中的gwt应用程序时(请注意gwt codserv和webserv都是本地的),我遇到了权限问题。 The following errors are thrown: 引发以下错误:

  • on Chrome console: "Refused to display document because display forbidden by X-Frame-Options."; 在Chrome控制台上:“拒绝显示文档,因为X-Frame-Options禁止显示。”
  • on Chrome webpage window: "Plugin failed to connect to Development Mode server at 127.0.0.1:9997 Follow the underlying troubleshooting instructions" 在Chrome网页窗口上:“插件无法在127.0.0.1:9997处连接到开发模式服务器,请按照基本的故障排除说明进行操作”

This ONLY happens in Google Chrome, firefox and IE are ok. 这仅发生在Google Chrome浏览器中,Firefox和IE都可以。

I've already searched for simillar problems but all of them are on crossdomain context, and mine is local. 我已经搜索了类似的问题,但所有问题都在跨域上下文中,而我的问题是本地的。 Also, tried the proposed solutions but all without success. 此外,尝试了建议的解决方案,但都没有成功。

Here is an example of my webpage containing my iFrame. 这是包含iFrame的网页示例。 I can't debug MyGWT app. 我无法调试MyGWT应用。

<!doctype html>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <iframe src="MyGWT.html?gwt.codesvr=127.0.0.1:9997"></iframe>
  </body>
</html>

The page that's being blocked is probably TroubleshootingOOPHM 被阻止的页面可能是故障排除

FYI, this has been fixed in GWT 2.5 , which now links to this page rather than trying to display it in an iframe (moreover underneath the error glasspane, which made it hardly readable anyway before Google changed their server settings) 仅供参考,此问题已在GWT 2.5中修复 ,现在可以链接到此页面,而不是尝试在iframe中显示该页面(而且在错误窗格下方,这使得在Google更改其服务器设置之前很难读取)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM