Manual:$wgAllowedCorsHeaders/ar
From Linux Web Expert
<translate> API</translate>: $wgAllowedCorsHeaders | |
---|---|
سرد قائمة بالعناوين المسموح بها في أغراض طلبات واجهة برمجة التطبيقات مختلطة المنشأ. |
|
<translate> Introduced in version:</translate> | 1.35.0 (Gerrit change 585491; git #0ed077d3) |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | (متوالية) |
<translate> Default value:</translate> | (طالع ما يلي) |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
يستخدم في الرد Access-Control-Allow-Headers
للطلبات من مصادر مختلفة الآتية من نطاق مسموح بموجب $wgCrossSiteAJAXdomains
.
قيمة افتراضية
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>"><translate> ≥</translate> 1.40
Gerrit change 921154<translate> MediaWiki version:</translate> |
This was backported to MediaWiki 1.35.11, 1.38.7 and 1.39.4.
$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',
/* OAuth 2.0, see T322944 */
'Authorization',
];
1.36 – 1.39
Gerrit change 646768<translate> MediaWiki versions:</translate> |
This was backported to MediaWiki 1.35.11.
$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',
];
1.35
<translate> MediaWiki version:</translate> |
$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',
];