Jump to content

Handbuch:$wgApiFrameOptions

From mediawiki.org
This page is a translated version of the page Manual:$wgApiFrameOptions and the translation is 45% complete.
Sicherheit: $wgApiFrameOptions
Control framing of api pages.
Eingeführt in Version:1.20.0 (Gerrit change 20472; git #32b99b11)
Entfernt in Version:Weiterhin vorhanden
Erlaubte Werte:(Zeichenkette) oder false
Standardwert:'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.

Optionen sind:

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

Siehe auch