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

Allow custom headers for OPTIONS requests #260

Closed
wants to merge 8 commits into from
Closed

Allow custom headers for OPTIONS requests #260

wants to merge 8 commits into from

Conversation

almartino
Copy link

I wanted to customize OPTIONS response headers to add cors related headers, because angular httpclient do CORS preflight request. This mod can avoid duplicated handlers e.g.
POST /api/users
OPTIONS /api/users

@julienschmidt julienschmidt added this to the v1.3 milestone Sep 16, 2019
julienschmidt added a commit that referenced this pull request Sep 29, 2019
julienschmidt added a commit that referenced this pull request Sep 29, 2019
@julienschmidt
Copy link
Owner

@almartino
Copy link
Author

thanks

similark pushed a commit to similarweb/httprouter that referenced this pull request May 9, 2023
Bumps [go.uber.org/zap](https://github.com/uber-go/zap) from 1.19.0 to 1.19.1.
- [Release notes](https://github.com/uber-go/zap/releases)
- [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md)
- [Commits](uber-go/zap@v1.19.0...v1.19.1)

---
updated-dependencies:
- dependency-name: go.uber.org/zap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

2 participants