主项目配置nginx
add_header Origin-Agent-Cluster "?0" // chorme 116版本开始对iframe跨域更加严格,要加此配置
子项目配置nginx
add_header Origin-Agent-Cluster "?0" add_header X-Frame-Options 'ALLOW-FROM *.主项目域名1 *.主项目域名2 *.baidu.com' add_header Content-Security-Policy 'frame-ancestors *.主项目域名1 *.主项目域名2 *.baidu.com'
标签:跨域,项目,域名,header,add,iframe,解决 From: https://www.cnblogs.com/djjlovedjj/p/17664680.html