Page MenuHomePhabricator

When calling the MediaWiki REST API from a chrome extension the request is not allowed because of CORS
Open, Needs TriagePublic

Description

{
"error": "rest-cross-origin-anon-write",
"httpCode": 403,
"httpReason": "Forbidden"
}

This is due to the AJAX control which is controlable via https://www.mediawiki.org/wiki/Manual:$wgCrossSiteAJAXdomains
However, this hardcodes https? and thus can never work for things like chrome extensions.

Event Timeline

Change 640170 had a related patch set uploaded (by Addshore; owner: Addshore):
[mediawiki/core@master] REST: Allow AJAX calling from chrome-extensions

https://gerrit.wikimedia.org/r/640170

Change 640170 abandoned by Addshore:

[mediawiki/core@master] REST: Allow AJAX calling from chrome-extensions

Reason:

https://gerrit.wikimedia.org/r/640170