FlightAware Discussions

Example JavaScript code from the documentation did not do anything - help?

Hello,

To get started I tried to see the example implementation using JavaScript. After adding in my user and API key though nothing happened when the button was pushed on the site to get the plane info. Any ideas?

If you are running the JavaScript in a client side browser you are likely encountering a error making cross-origin requests (CORS). If using JavaScipt requests should be made using a backend service, like the Node.js example.