Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Response to preflight request doesn't pass access control check: It does not have HTTP ok status.

Ditch Jan 04, 2019 06:46PM GMT

I'm trying to build a demo for internal presentation at work to pitch getting this api service.
On our staging server the console for the page has: " Response to preflight request doesn't pass access control check: It does not have HTTP ok status." in the console.

The code works fine on my local box. Is this my companies firewall or something else?
thanks.

Up 0 rated Down
Ditch Jan 08, 2019 06:50PM GMT
As a follow up, I figured out this was a browser issue related to CORS. I'm guessing I'd have to get the openweather domain white listed in my companies firewall.
In the meantime I switched to JSONP and was able to get the page to work.

Still would appreciate any comments from openweathermap on this.
Up 0 rated Down
Pavel Zuykov Jan 09, 2019 08:24AM GMT OpenWeatherMap Agent

Hello Ditch,

Thank you for request.

This problem may be due to firewall setting, if it block response, or change its consistency, for example.

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
9eda11838f597e7a95b6a1c991dcae0a@openweathermap.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete