Page MenuHomePhabricator

CORS errors when fetching diffs
Closed, ResolvedPublic1 Estimated Story Points

Description

Great tool!

I tried to look at interaction between myself and @Catrope through mediawiki.org, and it displayed the full log, but when I tried to click one of the interaction results, I got "Error ajax error 0"

Interaction Timeline.png (217×570 px, 16 KB)

Looking at the console, the error is CORS:

tools.wmflabs.org/:1 Failed to load https://mediawiki.org/w/api.php?action=compare&fromrev=717092&torelative=prev&formatversion=2&format=json&origin=*&prop=diff|user|ids: Redirect from 'https://mediawiki.org/w/api.php?action=compare&fromrev=717092&torelative=prev&formatversion=2&format=json&origin=*&prop=diff|user|ids' to 'https://www.mediawiki.org/w/api.php?action=compare&fromrev=717092&torelative=prev&formatversion=2&format=json&origin=*&prop=diff|user|ids' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://tools.wmflabs.org' is therefore not allowed access.

https://tools.wmflabs.org/interaction-timeline/?wiki=mediawikiwiki&user=Catrope&user=Mooeypoo&startDate=1370073600&endDate=1521010800

Event Timeline

This is because we have mediawiki.org in the config, instead of www.mediawiki.org

dbarratt set the point value for this task to 1.
dbarratt moved this task from Review to Done on the Anti-Harassment (AHT Sprint 17) board.