Aude has submitted this change and it was merged.

Change subject: Fix CORS requests in wikibase.RepoApi
......................................................................


Fix CORS requests in wikibase.RepoApi

Per http://stackoverflow.com/a/7190487

Change-Id: If6244d4978321f6544c661fac2c246e6ab11e8b0
---
M lib/resources/wikibase.store/wikibase.RepoApi.js
1 file changed, 5 insertions(+), 0 deletions(-)

Approvals:
  Aude: Verified; Looks good to me, approved
  jenkins-bot: Verified



diff --git a/lib/resources/wikibase.store/wikibase.RepoApi.js 
b/lib/resources/wikibase.store/wikibase.RepoApi.js
index aa9c0d6..0293326 100644
--- a/lib/resources/wikibase.store/wikibase.RepoApi.js
+++ b/lib/resources/wikibase.store/wikibase.RepoApi.js
@@ -418,6 +418,11 @@
                        return;
                }
 
+               options.xhrFields = {
+                       withCredentials: true
+               };
+               options.crossDomain = true;
+
                var currentServer = mw.config.get( 'wgServer' );
                if ( currentServer.indexOf( '//' ) === 0 ) {
                        // The origin parameter musn't be protocol relative

-- 
To view, visit https://gerrit.wikimedia.org/r/52562
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If6244d4978321f6544c661fac2c246e6ab11e8b0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Hoo man <[email protected]>
Gerrit-Reviewer: Aude <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to