Manual:$wgApiFrameOptions/zh
Appearance
安全: $wgApiFrameOptions | |
---|---|
Control framing of api pages. |
|
引进版本: | 1.20.0 (Gerrit change 20472; git #32b99b11) |
移除版本: | 仍在使用 |
允许的值: | (字符串)或false |
默认值: | 'DENY' |
其他设置: 按首字母排序 | 按功能排序 |
Details
Disallow framing of API pages directly, by setting the X-Frame-Options header. Since the API returns CSRF tokens, allowing the results to be framed can compromise your user's account security.
Options are:
- 'DENY' - Do not allow framing. This is recommended for most wikis.
- 'SAMEORIGIN' - Allow framing by pages on the same domain.
- false - Allow all framing.