Jump to: navigation, search
This page is a translated version of the page Manual:$wgApiFrameOptions and the translation is 45% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil
API: $wgApiFrameOptions
Control framing of api pages.
導入されたバージョン: 1.20.0 (Gerrit change 20472; git #32b99b11)
除去されたバージョン: 使用中
可能な値: 文字列または false
既定値: 'DENY'
他の設定: アルファベット順 | 機能順


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.


  • 'DENY': Do not allow framing. This is recommended for most wikis.
  • 'SAMEORIGIN': Allow framing by pages on the same domain.
  • false: Allow all framing.