如何重定向时如何渲染iframe
我的iframe工作正常,有一些URL,例如以下内容:
<iframe src="http://someworkingurl.com"></iframe>
现在,我想将此URL重定向到一些不同的URL,我希望Iframe能够在iFrame上呈现新的URL联系人。
以下是重定向规则:
http://someworkingurl.com -> http://somedifferenturl.com (302 Found)
http://someworkingurl.com -> http://somedifferenturl.com (307 Temporary redirect)
http://someworkingurl.com -> http://somedifferenturl.com (308 Permanent redirect)
在每个重定向情况下,iframe不渲染任何内容。 IFRAME是否仍然可以通过任何重定向呈现?
I have iframe which is working fine has some url like following:
<iframe src="http://someworkingurl.com"></iframe>
Now I want to redirect this URL to some different URL and I am expecting iframe to render new URL contact on iframe.
Following are the redirect rule:
http://someworkingurl.com -> http://somedifferenturl.com (302 Found)
http://someworkingurl.com -> http://somedifferenturl.com (307 Temporary redirect)
http://someworkingurl.com -> http://somedifferenturl.com (308 Permanent redirect)
In every redirect case iframe not rendering anything. Is this possible that iframe still render with any redirect?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论