QtWebkit 同源策略
我将 QtWebkit 移植到基于 Arm 的平台上。我们能够运行 QtTestBrowser。 我想在上面的浏览器中禁用“同源策略”。
如果有人对此有想法,请告诉我。
I have QtWebkit ported on Arm based platform. We are able to run QtTestBrowser.
I wanted to disable "same-origin-policy" in the above browser.
Please let me know if any body has idea on this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我知道这已经过时了,但是您可以通过修改 QWebPage 的设置来做到这一点:
I know this is old, but you can do this by modifying the QWebPage's settings:
默认情况下,Qt 不会公开禁用/白名单同源策略的方法。扩展相同的(qwebsecurityorigin.cpp)并能够使其工作。
By default, Qt doesn't expose method to disable / whitelist the same origin policy. Extended the same (qwebsecurityorigin.cpp) and able to get it working.