Skip to content

Add Authorization to Access-Control-Allow-Headers and set Access-Control-Allow-Credentials: true #3166

Description

@waweber

Is your feature request related to a problem? Please describe.
An application that interacts with the API via a browser cannot set the Authorization header due to the CORS headers returned by the server.

Describe the solution you'd like
Add Authorization to the Access-Control-Allow-Headers CORS headers, and set Access-Control-Allow-Credentials: true to allow web clients to specify an API token.

Unrelated to this specific issue: The Content-Type header might also be useful to include, since some request libraries attempt to read this header to check for JSON, and also Access-Control-Max-Age to cache CORS results would be useful.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions