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

Umherirrender <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from Umherirrender <[email protected]> ---
Works when using the syntax suggest in gerrit 9624

$.ajax( {
    'url': 'https://commons.wikimedia.org/w/api.php',
    'data': {
        'action': 'tokens',
        'type': 'edit',
        'format': 'json',
        'origin': 'https://de.wikipedia.org'
    },
    'xhrFields': {
        'withCredentials': true
    },
    'success': function( data ) {
        console.log( data );
    }
} );

No idea, what the different to your code is. (I do not know how ajax() is
implemented and if that makes a different).

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

Reply via email to