Basically, when I make a PUT request using jQuery.ajax method. It does not work properly.
For example:
$.ajax({
    "url": "http://quironapi.twotigers.local/cidades/editar/1",
    "method": "PUT",
    "type": "json",
    "data": JSON.stringify({
        "latitude": 2
    }),
    contentType: "application/json; charset=utf-8"
}).done(function(resultado){
    console.log("dados atualizados", resultado);
}).fail(function(err){
    console.log("falha ao atualizar", err);
});
But, when I make the same request with ARC (a postman like chrome extension), it shows me that the Access-Control-Allow-Origin is present already:
Also, the "insert/create" request using POST method instead of PUT works fine. I tried to use fetch api as well but it returns me the same cors origin error.
What am I missing?


 
    