Access-Control-Allow-Origin

Tagged:

Currently contains 1 post

Avatar

January 14, 2018 13:58

overman

I have problem “No ‘Access-Control-Allow-Origin’ header is present on the requested resource”. How added Cross-Origin Resource Sharing (CORS) support to my local weather api?

$.ajax({
url: “https://api.weatherunlocked.com/api/current/36,50?app_id={ID}app_key={KEY}”,
type: “GET”,
success: function (parsedResponse, statusText, jqXhr) {

console.log(parsedResponse); }, error: function (error) { console.log(error); } });
Reply to thread
  1. If you're human, leave this field empty.