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

FORMS-1364 CORS for production and localhost #1533

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

usingtechnology
Copy link
Collaborator

@usingtechnology usingtechnology commented Nov 28, 2024

Description

Allow External API and Map component to work while running in localhost - this requires cors. But we don't want to enable cors for ALL origins, only localhost.
cors is not need in production because we run the compiled UX from the express application - backend and frontend are the same origin.

Type of Change

fix (a bug fix)

Checklist

  • I have read the CONTRIBUTING doc
  • I have checked that unit tests pass locally with my changes
  • I have run the npm script lint on the frontend and backend
  • [] I have added tests that prove my fix is effective or that my feature works
  • [] I have added necessary documentation (if appropriate)
  • I have approval from the product owner for the contribution in this pull request

Further comments

This comment has been minimized.

Copy link

.devcontainer/README.md Outdated Show resolved Hide resolved
Signed-off-by: Jason Sherman <tools@usingtechnolo.gy>
Copy link
Collaborator

@abhilash-aot abhilash-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for getting the cors issue solved for using the external api and address component to be used in local development

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants