[JQuery, AJAX] Can't get reponse of Mojang API

Discussion in 'Programming' started by TaskID, Oct 7, 2020.

  1. Hello,
    I want to use the Mojang API to get the Name-History of players for my website.

    My Ajax Request looks like that:
    Code (Java):
            url: 'https://api.mojang.com/user/profiles/f6876dc7bbdc47258b1d0c1ab1b0cbde/names?callback=?',
            dataType: "jsonp",
            success: function (data) {
    Now the problem is that I can see the response in Chrome in the "Network" tab, but ajax doesn't get it. I tried it with "success" and "done" (after the response of course). Not working. Feels like that data is null or the functions doesn't even get called.

    I hope somebody can help me