How to modify headers for OPTIONS method
- Dominant language
- Python
- Stars
- 11.1k
- Forks
- 1k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 2
Description
Good morning,
When reading the documentation, I understood that an OPTIONS method is automatically generated for each route when CORS is enabled.
I would like to understand if there is a way to specify what headers this method should return. In particular, we would like to add the HSTS header.
Could someone please point me to how could we achieve this?
Thanks in advance and thanks for the great work and support!
Contributor guide
Research direction
The issue names no file, test, or entry point. Start by locating the CORS-generated OPTIONS handling and its route configuration, then determine whether custom response headers such as HSTS are supported; done means documenting or implementing a clear way to control those headers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- api, security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100