jsonata-js / jsonata-exerciser

Playground for trying out JSONata expressions
MIT License
24 stars 27 forks source link

Versions dropdown not loading on try.jsonata.org due to CORS error #17

Closed davimiku closed 3 years ago

davimiku commented 3 years ago

Hello!

The versions dropdown isn't loading on https://try.jsonata.org

image

From what I can tell, the versions are fetched here: https://github.com/jsonata-js/jsonata-exerciser/blob/master/src/Exerciser.js#L100

The request has a CORS error from the API endpoint.

GET https://c40c296d.us-south.apigw.appdomain.cloud/api/versions
Status500
Internal Server Error

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://c40c296d.us-south.apigw.appdomain.cloud/api/versions. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

image

Otherwise, the exerciser is still working fine as it seems that the jsonata.min.js loads the most recent version if no version is passed.

Browser: Firefox v87 (latest at the time of writing) OS: Ubuntu (Linux)

davimiku commented 3 years ago

Could have been an issue with API Gateway, looks resolved now.