![](/img/trans.png)
[英]Opening links in default browser with InAppBrowser in PhoneGap/Cordova
[英]Cordova plugin InAppBrowser is not opening links
我想使用 Google chrome 在 InAppBrowser 中打开一个链接。 这是我的代码: var teste=cordova.InAppBrowser.open('https://free.facebook.com/','_blank','location=yes')
我收到此错误消息:chromewebdata/:1 拒绝在框架中显示“https://free.facebook.com/”,因为它将“X-Frame-Options”设置为“拒绝”。
you can't show https://free.facebook.com/ inside of chrome using InAppBrowser, because the header x-frame-options: DENY which is sent by facebook.com is denying the browser.
您可以在开发人员工具的网络选项卡中看到这个 header 和其他有价值的标题
您可以从这里阅读更多关于 header 的信息mdn:X-Frame-Options
这将像您在 android 中所期望的那样工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.