unity-sds / unity-cs

Unity Common Services
Apache License 2.0
0 stars 2 forks source link

[Bug]: API GW is reporting CORS issues in EMIT-DEV #482

Open anilnatha opened 4 days ago

anilnatha commented 4 days ago

Checked for duplicates

Have you checked for duplicate issue tickets?

Yes

Describe the bug

When I deployed the unity-ui application to the emit-dev venue, the application calls the production instance of API GW and reports a CORS issue.

What did you expect?

A clear and concise description of what you expect to happen

I did not expect API GW to report a CORS error since the request is originating from a known unity domain (www.mdps.mcp.nasa.gov)

Reproducible steps

  1. Open your browser's dev tools,
  2. Navigate to https://www.mdps.mcp.nasa.gov:4443/emit/dev/dashboard (fyi, at the time of writing this ticket we were experiencing intermittent 504 issues in the emit-dev venue)
  3. The UI will redirect to the cognito login so you can login (again, at the time of writing this ticket, we were experiencing 504 timeouts after login)
  4. if you are successfully redirected back to the UI application after login, observe in the dev tools that a CORS issue is reported for the API (see screenshot)
image

What is your environment?

This occurred in the emit-dev venue

anilnatha commented 3 days ago

I tested the API using Postman and the response I received leads me to believe that the health check API may not yet be deployed to the EMIT DEV venue.