-1
For the AJAX request below:
var url = "minhaurlaqui";
$.ajax({url: url, success: function (retorno)
}
I have the following return:
"Access to Xmlhttprequest at 'urlaqui' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested Resource."
I can not adjust this anywhere, someone could tell me what is missing to do in the Ajax request ?
Hello Diogo! Can you please tell me which URL you are trying to request? It would be a local URL?
– Vinicius Gabriel
Fastest way: Using an extension. I’ve never done this but I found this one. https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi If you are using any logic on your endpoint, speak here, as it is possible to enable this for you.
– Ítalo Sousa
Yes, but below I received the answer to doubt, who blocks is browser, anyway thank you.
– Diogo Odelli