Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想让我的网页嵌入到(其他域)iframe 中。
我应该与服务器的响应一起发送什么特定的标头?
将在 iframe 中提供的所有资源(图像、css、...)或仅提供的第一个 html 页面是否需要此标头?
您不需要任何标题来允许在框架中显示内容。
x-frame-options允许您限制访问,但如果不存在,则允许使用框架。
x-frame-options