-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support web #19
Comments
Hi, Thanks. |
Hi! |
On Chrome Browser: `dashboard:1 Access to XMLHttpRequest at 'https://weatherkit.apple.com/api/v1/weather/en/XX.XXXXX/XX.XXXXX?dataSets=currentWeather,forecastDaily,forecastHourly,forecastNextHour' from origin 'https://XXXXX.XXXXXX.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status. main.dart.js:48096 XMLHttpRequest error. weatherkit.apple.com/api/v1/weather/en/XX.XXXXX/XX.XXXXX?dataSets=currentWeather,forecastDaily,forecastHourly,forecastNextHour:1 Failed to load resource: net::ERR_FAILED I masked the coordinates my app url. But it seems that ideally the remote API (Apple Weatherkit in this case) should allow requests from * origin if it wants to support Web Browsers. It seems not to be the case, making me wonder if the API was only designed for native apps. The pre-decessor of this API, DarkSky worked perfectly in browsers as well. |
No description provided.
The text was updated successfully, but these errors were encountered: