Fix CORS requests in wikibase.RepoApi

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

Change-Id: If6244d4978321f6544c661fac2c246e6ab11e8b0
Merge "Fix CORS requests in wikibase.RepoApi"