https://bugzilla.wikimedia.org/show_bug.cgi?id=20814
--- Comment #18 from Roan Kattouw <[email protected]> 2012-09-05 18:32:18 UTC --- (In reply to comment #17) > (In reply to comment #16) > > Should this code be working also on pt.wikipedia? (it isn't) > Specifically: > ---- > XMLHttpRequest cannot load > https://www.mediawiki.org/w/api.php?action=query&meta=userinfo&format=json&origin=https%3A%2F%2Fen.wikipedia.org. > Origin https://pt.wikipedia.org is not allowed by Access-Control-Allow-Origin. > ---- You have to set the origin= query parameter correctly. Your URL contained &origin=https%3A%2F%2Fen.wikipedia.org , that needs to be &origin=https%3A%2F%2Fpt.wikipedia.org instead (this corresponds to the 'origin': 'https://en.wikipedia.org' line in my snippet). -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
