使用Iframe时针对X-Frame-Options跨域问题的解决方案-Nginx(亲测有效)
只需一个配置,轻松解决X-Frame-Options跨域问题效果展示:1、存在问题:2、解决问题对iframe引入的http://com.ityj.frame/xframe/hello项目,通过nginx过滤掉X-Frame-Options的配置操作如下:location / { #root html; #index index.html index.htm; proxy_pass http://com.ityj.frame; proxy_hide_header X-Fr
原创
2021-04-28 22:05:02 ·
15291 阅读 ·
1 评论