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.