QtWebkit 同源策略 [英] QtWebkit Same-Origin-policy

查看:64
本文介绍了QtWebkit 同源策略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在基于 Arm 的平台上移植了 QtWebkit.我们能够运行 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.

推荐答案

默认情况下,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.

这篇关于QtWebkit 同源策略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆