AlexisJazz created this task. AlexisJazz added projects: MediaWiki-Action-API, Wikibase-JavaScript-Api, JavaScript. Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION **List of steps to reproduce** (step by step, including full links if applicable): var api = new mw.ForeignApi('https://wikidata.beta.wmflabs.org/w/api.php'); api.get({format:'json',action:'wbgetentities',props:'sitelinks',ids:'Q1'}).done(function(data){}); **What happens?**: Get: - https://wikidata.beta.wmflabs.org/w/api.php?action=query&format=json&origin=https%3A%2F%2Fcommons.wikimedia.beta.wmflabs.org&meta=userinfo%7Ctokens - https://wikidata.beta.wmflabs.org/w/api.php?action=wbgetentities&format=json&origin=https%3A%2F%2Fcommons.wikimedia.beta.wmflabs.org&props=sitelinks&ids=Q1 Links without origin to open in browser: - https://wikidata.beta.wmflabs.org/w/api.php?action=query&format=json&meta=userinfo%7Ctokens - https://wikidata.beta.wmflabs.org/w/api.php?action=wbgetentities&format=json&props=sitelinks&ids=Q1 **What should have happened instead?**: Just get the second link. You didn't need nor use that CSRF token. TASK DETAIL https://phabricator.wikimedia.org/T308389 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: AlexisJazz Cc: Aklapper, AlexisJazz, Trngsh15, Mengs21, EgbeRef, Vaibhav0199, Tinzawoo533, WDoranWMF, Onmir, DannyS712, Mh-3110, Yahya, Amorymeltzer, Jayprakash12345, enigmaeth, rohitt, Sethakill, dg711, Dixtosa, Wikidata-bugs, Dinoguy1000, jayvdb
_______________________________________________ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org