Page MenuHomePhabricator

Cross domain tokens
Closed, ResolvedPublic

Description

Currently when adding a photo to an article it uploads it to Commons however it doesn't add the image to the article.

Looking closely - the api call to prepend the image to the article gets a response of {"servedby":"srv253","error":{"code":"badtoken","info":"Invalid token"}}
1

It appears it is sending the token received from:
http://commons.wikimedia.org/w/api.php?format=json&action=tokens&type=edit&origin=http%3A%2F%2Fen.m.wikipedia.org

rather than the token for the current wiki.


Version: unspecified
Severity: normal

Details

Reference
bz42709

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:47 AM
bzimport set Reference to bz42709.
Jdlrobson created this task.Dec 5 2012, 1:13 AM

Merged to master