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

Improve CORS middleware to support other CORS headers #43

Closed
lmammino opened this issue Oct 6, 2017 · 16 comments
Closed

Improve CORS middleware to support other CORS headers #43

lmammino opened this issue Oct 6, 2017 · 16 comments

Comments

@lmammino
Copy link
Member

lmammino commented Oct 6, 2017

It would be great to have support to other common CORS headers like the follows:

  • Access-Control-Allow-Methods
  • Access-Control-Allow-Headers
  • Access-Control-Max-Age
  • Access-Control-Allow-Credentials

More info here

@akshitgrover
Copy link

@lmammino can I work on this?

@lmammino
Copy link
Member Author

lmammino commented Oct 7, 2017

Sure thing @akshitgrover

@abdullateef97
Copy link

can i work on this
#38

@lmammino
Copy link
Member Author

@akshitgrover, what's the current status? Do you want to coordinate/pair with @abdullateef97?

@abdullateef97
Copy link

please do let me know if i can proceed

@abdullateef97
Copy link

@lmammino can i

@lmammino
Copy link
Member Author

@abdullateef97 go ahead for now ;)

@akshitgrover
Copy link

Sorry, I was stuck with something. Maybe I can help if work is still not done? @lmammino @abdullateef97

@lmammino
Copy link
Member Author

lmammino commented Oct 11, 2017

I would be happy for this to be a collaborative effort between @akshitgrover and @abdullateef97 . Can you discuss this between yourself and figure out how to collaborate?

If you need a discussion channel, you can join the middy official chat on gitter: https://gitter.im/middyjs .

Once you have a first PR, I will be happy to support the process with a formal reviews and advices if needed.

@akshitgrover
Copy link

I am working on Access-Control-Max-Age. @lmammino @abdullateef97

@abdullateef97
Copy link

@lmammino ive u tried using the cors middleware, if you have what were the issues

@akshitgrover
Copy link

@lmammino I am not able to run the tests, It is not returning undefined instead of objects.

@lmammino
Copy link
Member Author

@abdullateef97 @akshitgrover I am not sure what are you trying to do. Please join the gitter chat where I guess it would be easier to discuss interactively your issues.

@omry-hay
Copy link

@lmammino - Are you going to add the following any time soon?

  • Access-Control-Max-Age
  • Access-Control-Allow-Methods

@willfarrell willfarrell modified the milestone: v2.0.0 Dec 29, 2020
@camiloaz
Copy link

I see this issue is closed but there is no solution yet if you want to be able to set the Access-Control-Allow-Methods header.

@willfarrell
Copy link
Member

It's been added to v2, see release/2.x branch

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

No branches or pull requests

6 participants