X-Frame-Options防盗链
(2023-06-06 10:03:25)
标签:
防盗链劫持 |
分类: 网络安全 |
X-Frame-Options 有三种可配置值:
X-Frame-Options: deny
X-Frame-Options: sameorigin
X-Frame-Options: allow-from https://example.com
字段 | 描述 | 备注 |
---|---|---|
X-Frame-Options: deny |
该页面不允许在 frame 中展示, 即便是在相同域名的页面中嵌套访问也不允许。 |
deny、sameorigin、allow-from 仅仅允许使用一种配置 |
X-Frame-Options: sameorigin | 该页面可以在相同域名页面的 frame 中嵌套访问 |
deny、sameorigin、allow-from 仅仅允许使用一种配置 |
X-Frame-Options: allow-from |
该页面可以在指定来源的 frame 中嵌套访问 |
1.deny、sameorigin、allow-from 仅仅允许使用一种配偶者 |
前一篇:kafka3.4.0测试