CORS Header blocked. #26
-
I want to make my own website with the VATSIM API. When I try to send a GET request to "https://my.vatsim.net/api", and run the website on localhost, I get the error, that my "Cross-Origin Request" is blocked. Could someone please help me with this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
We don't currently enable CORS on the myVATSIM APIs. I'd suggest using your own backend server to hit the API and cache the results on your end in order to ensure you're not causing undue load on our systems. |
Beta Was this translation helpful? Give feedback.
We don't currently enable CORS on the myVATSIM APIs. I'd suggest using your own backend server to hit the API and cache the results on your end in order to ensure you're not causing undue load on our systems.
Having the API call be made in the browser on every potential user's computer can lead to a significant amount of increased traffic to our APIs.