Steps to replicate the issue:
- Ensure mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Alaexis/AI_Source_Verification.js&action=raw&ctype=text/javascript'); is present in your common.js
- Navigate to any article with references, e.g. https://en.wikipedia.org/wiki/Expensive_Tape_Recorder
- Click a reference number to verify a claim
- Open the browser console
What happens?
- Content-Security-Policy: The page's settings blocked the loading of a resource
- at https://publicai-proxy.alaexis.workers.dev/ ("connect-src")
What should have happened instead?
- The script should have fetched the source and sent a verification request.
What the script does
User:Alaexis/AI Source Verification is a citation fact-checking tool for Wikipedia editors. When a user clicks a reference number on an article, the script extracts the claim text, fetches the cited source, and uses an AI model to assess whether the source actually supports the claim, returning a SUPPORTED / PARTIALLY SUPPORTED / NOT SUPPORTED verdict.
The script currently supports multiple AI providers (PublicAI, Claude, Gemini, ChatGPT). All requests are routed through a proxy at publicai-proxy.alaexis.workers.dev which handles source fetching and rate limiting of the free models.
How this could be resolved
Either
- Revert CSP restrictions - see @Polygnotus 's comment on the wider impact
- Whitelist publicai-proxy.alaexis.workers.dev in connect-src (source code https://github.com/alex-o-748/public-ai-proxy)
Other information (browser name/version, screenshots, etc.):
This issue appeared following the CSP changes deployed on March 5, 2026 in response to the Meta-Wiki security incident. See also https://phabricator.wikimedia.org/T419232 for a similar case affecting a Wikisource script.