iframe无法与iPhone中的主页互动
我有一个Web应用程序,该应用程序作为服务器端渲染和客户端渲染的混合嵌入在iframe主页内。
通过WebApp控制身份验证和授权,该Web App为顶级NAV和SIDE NAV提供了JSP。
和单个页面(iframe内部)呼叫并倾听主帧提供的事件。
这在Chrome和其他浏览器中很好地工作,但没有在Safari上工作。 在移动设备上,它正在使用所有Android设备,但即使在
控制台的Chrome上也无法使用,我在以下错误 ReferenceError:找不到变量:sisscorpobleVents
这些事件在通过JSP提供的主页中定义。似乎不允许在iframe内访问它。
我试图深入潜水和可能使用沙盒参数发现的原因,我们没有将沙盒与iframe一起使用。我还添加了Sandbox参数,并允许所有可能的值来测试这些参数,但也无法正常工作。
Safari / iPhone中应用的任何特殊安全策略?
I have a web application that runs as mix of server side rendering and client side rendering, Where common component(side nav and top nav) are rendered via server side rendering and individual pages(content of page) are loaded by client side rendering using React embedded in iframe inside main page.
Authentication and Authorization is controlled via webapp which serves the JSP for Top Nav and Side Nav.
And individual pages(inside iframe) calls and listens to the event provided by main frame.
This is working fine in chrome and other browsers, but is not working on Safari.
And on mobile It is working on all android device but not working even on chrome in Iphone
In console I am seeing below errorReferenceError: Can't find variable: subscribeAbleEvents
These events are defined in main page served via jsp. Seems like it is not allowing this to be accessed inside iframe.
I tried to deep dive and probable reason I found with sandbox parameter, We are not using sandbox with iframe. I also added sandbox parameter with all possible value allowed to test these, but it is also not working.
Any special security policy that is applied in safari / Iphone?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用对象标签
告诉我它是否有效
use the object tag instead
<object data="URL" width="width_here" height="height_here"></object>
tell me if it works or not