Replies: 2 comments 2 replies
-
Sorry, this support resource is for api.weather.gov. Please see the Aviation API for support for that service. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Somehow you guys are related. I found links to weather.gov from avaitionweather.com and vice versa. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I can't figure out how to get my code to work in production. I've change the .htaccess file on the server and tried everything I could find on the internet for a fix. Lots of testing...... I need help?
Works fine in Firefox with Cors Everywhere extension.
Console Error:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://aviationweather.gov/api/data/metar?ids=Kjka%2CKcqf%2CKmob&format=geojson. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.
My Code:
const url = 'https://aviationweather.gov/api/data/metar?ids=Kjka%2CKcqf%2CKmob&format=geojson';
// get weather information
const getWeather = async () => {
};
getWeather().then(data => {
console.log('promise 1 resolved:', data);
}).catch(err => console.log('rejected:', err.message));
Beta Was this translation helpful? Give feedback.
All reactions