Nginx安全策略 “frame-ancestors ‘self‘“

1、问题点:

其他平台项目使用免登录方式嵌入我们平台,被拒绝。

Refused to frame 'http://192.168.0.24:8886/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'".

2:前端嵌入iframe 时,有时汇报安全策略如下:

in a frame because an ancestor violates the following Content Security Policy directive: "frame-ancestors ‘self’。

这里主要是 frame-ancestors的参数需要调整。

# 不允许被嵌入,包括,