Manual:$wgDebugAPI/en
From Linux Web Expert
<translate> API</translate>: $wgDebugAPI | |
---|---|
Loosens API security to allow for easier debugging |
|
<translate> Introduced in version:</translate> | 1.21.0 (Gerrit change 44575; git #258929f5) |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | (boolean) |
<translate> Default value:</translate> | false |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
Details
When true
, some security-related restrictions are loosened.
For example POST-only requests can now be made as GET.
ApiBase::dieWithErrorOrDebug()
will only set a warning instead of failing.
An extra warning header will be added in the response if enabled.