Reported by SWinxy on Discord
Steps to replicate the issue (include links if applicable):
- Log into an account on enwiki
- Special:Preferences -> Gadgets -> turn on "XTools" gadget -> save
- Special:RandomPage (example page: https://en.wikipedia.org/wiki/StarRay)
What happens?:
- XTools ArticleInfo doesn't load. Displays a blinking dot to indicate that it is trying to load, but is never replaced with the ArticleInfo
- Console contains 2 identical CORS errors: Access to XMLHttpRequest at 'https://xtools.wmflabs.org/api/page/articleinfo/en.wikipedia.org/StarRay?format=html&uselang=en' from origin 'https://en.wikipedia.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
What should have happened instead?:
- XTools ArticleInfo should be displayed in the article's header
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
- https://xtools.wmflabs.org/api/page/articleinfo/en.wikipedia.org/StarRay?format=html&uselang=en seems to work fine if you copy paste that into browser and visit the page, so API is up and running