CORS Header blocked. #26
Answered
by
williammck
MemesBananza
asked this question in
Bugs
|
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? |
Answered by
williammck
Oct 26, 2024
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. |
0 replies
Answer selected by
MemesBananza
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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.
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.