Ajax Error - Access-Control-Allow-Origin

Tagged:

Currently contains 1 post

Avatar

August 23, 2018 11:03

Tim Foster

I’m getting a failure when I try to make a call the API from a webpage.
I can call the api directly in a browser and get a response, but if I try to call it from a webpage, I get the error:
SEC7120: [CORS] The origin ‘http://www.domain.com’ did not find ‘http://www.domain.com’ in the Access-Control-Allow-Origin response header for cross-origin resource at ’https://api.weatherunlocked.com/api/current/51.5,-0.1?app_id={id}&app_key={key}.
HTTP403: FORBIDDEN – The server understood the request, but is refusing to fulfil it.
(XHR)GET – https://api.weatherunlocked.com/api/current/51.5,-0.1?app_id={id}&app_key={key}.

I’ve seen other posts on here saying they get the same error, but nothing saying how to resolve it. Can someone help?

Reply to thread
  1. If you're human, leave this field empty.