Skip to content
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

Get ATIS from JSON API and enhance display #3

Open
rcd opened this issue Sep 5, 2021 · 0 comments
Open

Get ATIS from JSON API and enhance display #3

rcd opened this issue Sep 5, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@rcd
Copy link
Owner

rcd commented Sep 5, 2021

We are unable to do a fetch() due to the CORS Origin header that the MSFS "browser" adds to the request. While we could work around this by using a CORS proxy, that would require a 3rd party server.

The current workaround is to display the text based ATIS report in an iframe.

The PilotEdge team was made aware and hopefully they will have a solution in the future.

[Error] Origin coui://html_ui is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin coui://html_ui is not allowed by Access-Control-Allow-Origin. (KSMX.json, line 0)
[Error] XMLHttpRequest cannot load https://www.pilotedge.net/atis/KSMX.json due to access control checks.

@rcd rcd added the enhancement New feature or request label Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant