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

CORS #23

Closed
justgigio opened this issue Jun 21, 2021 · 3 comments · Fixed by #26
Closed

CORS #23

justgigio opened this issue Jun 21, 2021 · 3 comments · Fixed by #26
Assignees

Comments

@justgigio
Copy link
Contributor

  • We need to be able to configure CORS with env vars
  • We need to fix CORS headers for error responses
@justgigio
Copy link
Contributor Author

#26

@pedroferreira1 pedroferreira1 linked a pull request Jun 25, 2021 that will close this issue
@jansegre
Copy link
Member

jansegre commented Jun 30, 2021

I'm OK with this task, as long as it solves any actual problem we're having right now.

Otherwise I think we're looking at CORS the wrong way. We have no reason to make it application specific (confirmed by the fact the we're setting it to a static header, it doesn't take any input into account to produce a different value), and as such it should be a deploy setup problem (API Gateway has setup options for CORS, otherwise if we use a CloudFront in front of the API, it also has CORS setup options, and if we opt to use a single domain, which I think we should, than we don't need CORS).

Am I missing something? @luislhl @pedroferreira1 @giovanecosta

@luislhl
Copy link
Contributor

luislhl commented Jun 30, 2021

I'm OK with this task, as long as it solves any actual problem we're having right now.

Otherwise I think we're looking at CORS the wrong way. We have no reason to make it application specific (confirmed by the fact the we're setting it to a static header, it doesn't take any input into account to produce a different value), and as such it should be a deploy setup problem (API Gateway has setup options for CORS, otherwise if we use a CloudFront in front of the API, it also has CORS setup optons, and if we opt to use a single domain, which I think we should, than we don't need CORS).

Am I missing something? @luislhl @pedroferreira1 @giovanecosta

Yeah, I think your reasoning about CORS not being a application concern makes sense.

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 a pull request may close this issue.

3 participants