https://bugzilla.wikimedia.org/show_bug.cgi?id=41731

--- Comment #17 from Jon <[email protected]> ---
Thanks so much for doing this Mark. I can't seem to get it working though...

I tried this on enwiki with the following steps:
* Visited https://en.m.wikipedia.org/wiki/Special:Uploads
* enabled upload progress bars in my JavaScript console:
mw.config.set( 'wgMFAjaxUploadProgressSupport', true )
* Attempted to upload an image

The ajax request failed:

OPTIONS
https://commons.m.wikimedia.org/w/api.php?useformat=mobile&r=0.5664375186897814
Origin https://en.m.wikipedia.org is not allowed by
Access-Control-Allow-Origin.
load.php?debug=false&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Cl…:128
XMLHttpRequest cannot load
https://commons.m.wikimedia.org/w/api.php?useformat=mobile&r=0.5664375186897814.
Origin https://en.m.wikipedia.org is not allowed by
Access-Control-Allow-Origin. 

This is the request url info:

Request
URL:https://commons.m.wikimedia.org/w/api.php?useformat=mobile&r=0.5664375186897814
Request Method:OPTIONS
Status Code:200 OK
Request Headersview source
Accept:*/*
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-GB,en-US;q=0.8,en;q=0.6
Access-Control-Request-Headers:accept, content-type
Access-Control-Request-Method:POST
Cache-Control:no-cache
Connection:keep-alive
Host:commons.m.wikimedia.org
Origin:https://en.m.wikipedia.org
Pragma:no-cache
Referer:https://en.m.wikipedia.org/wiki/Special:Uploads
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36

Am I doing something wrong?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to