FlightXML v3 - Github test won't run


#1

Using the test Github file provided by FlightAware for v3, I can’t get the Jquery version to run (https://github.com/flightaware/flightxml3_examples). I replaced 2 items: added my api username&key and the GoogleMaps api key

The alert msg is
Failed to decode route: [object Object]

The error msg is
jquery.min.js:4 [Deprecation] Subresource requests whose URLs contain embedded credentials (e.g. https://user:pass@host/) are blocked. See https://www.chromestatus.com/feature/5669008342777856 for more details.

[UPDATE: One of the problems, I think, is a malformed URL in Github. Maybe it hasn’t been updated in awhile. Does anyone have a working example to share please?]

Any ideas on how to fix this?
Thanks,
Felicia


#2

We do not recommend usage of FlightXML through Javascript in a browser, due to the authentication and deprecation issues that this style of development currently faces.


#3

I understand, but it’s what I have right now. I can’t log in with my username and password using AJAX. How do I log in ? Thanks.

GET https://username:password@flightxml.flightaware.com/json/FlightXML3/FlightInfoStatus?ident=SWA2243&howMany=3&include_ex_data=false


#4

You should assume this is not currently possible and not attempt to use Browser-based Javascript for development of new applications at this time. We are encouraging users to develop backend server-based applications instead.