Topic on Talk:XTools/ArticleInfo.js

GeneralNotability (talkcontribs)
MusikAnimal (talkcontribs)

What browser are you using? Nothing changed on the XTools-side. It should accept requests from any origin. E.g.:

curl -i -H 'Origin: https://example.org' 'https://xtools.wmflabs.org/api/page/articleinfo/en.wikipedia.org/Draft:Eric_Garland?format=html&uselang=en'

running this, I see access-control-allow-origin: https://example.org in the response headers.

Martin Urbanec (talkcontribs)
GeneralNotability (talkcontribs)

I'm using Firefox 81 + Win10.

MusikAnimal (talkcontribs)

The deployed version has no specified protocol and has not been touched in almost exactly a year, and the enwiki gadget explicitly uses https. The script generated by the app (intended to be copied/pasted to the wiki) still generates http instead of https, though, and the uglified version is broken (phab:T256582). So I'm not sure what script you are using, @Martin Urbanec, but regardless I believe your issue is separate from what GeneralNotability is reporting.

I tested in Firefox 81 and all is working fine. I can't test on Windows, but that shouldn't matter. @GeneralNotability are you seeing this issue on all wikis?

Martin Urbanec (talkcontribs)

I used mw.loader.load(LINKTOXTOOLSJSFILE), see https://ctrlv.tv/xUsz for a screencast. It works with https.

GeneralNotability (talkcontribs)

I'm using this script via my global.js using the method suggested at XTools#Installation on Wikimedia wikis, import line is mw.loader.load('//www.mediawiki.org/w/index.php?title=XTools/ArticleInfo.js&action=raw&ctype=text/javascript');. I spot-checked and I'm definitely seeing this issue on multiple wikis.

Martin Urbanec (talkcontribs)

Weirdly enough, it works for me when I use the mw.loader.load('//www.mediawiki.org/w/index.php?title=XTools/ArticleInfo.js&action=raw&ctype=text/javascript'); snippet.

Reply to "CORS"