Manual:$wgAllowedCorsHeaders

From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgAllowedCorsHeaders and the translation is 40% complete.
Other languages:
English • ‎Türkçe • ‎中文 • ‎日本語
API: $wgAllowedCorsHeaders
List of allowed headers for cross-origin API requests.
Sürümde tanıtıldı:1.35.0 (Gerrit change 585491; git #0ed077d3)
Sürümde kaldırıldı:hala kullanımda
İzin verilen değerler:(dizi)
Varsayılan değer:(see below)

Default value

MediaWiki sürümü:
1.36

Gerrit change 646768
$wgAllowedCorsHeaders = [
	/* simple headers (see spec) */
	'Accept',
	'Accept-Language',
	'Content-Language',
	'Content-Type',
	/* non-authorable headers in XHR, which are however requested by some UAs */
	'Accept-Encoding',
	'DNT',
	'Origin',
	/* MediaWiki whitelist */
	'User-Agent',
	'Api-User-Agent',
	/* Allowing caching preflight requests, see T269636 */
	'Access-Control-Max-Age',
];
MediaWiki sürümü:
1.35
$wgAllowedCorsHeaders = [
	/* simple headers (see spec) */
	'Accept',
	'Accept-Language',
	'Content-Language',
	'Content-Type',
	/* non-authorable headers in XHR, which are however requested by some UAs */
	'Accept-Encoding',
	'DNT',
	'Origin',
	/* MediaWiki whitelist */
	'User-Agent',
	'Api-User-Agent',
];