如何重定向时如何渲染iframe

发布于 2025-02-09 03:04:16 字数 521 浏览 1 评论 0原文

我的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文