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.
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
Authorizationto theAccess-Control-Allow-HeadersCORS headers, and setAccess-Control-Allow-Credentials: trueto allow web clients to specify an API token.Unrelated to this specific issue: The
Content-Typeheader might also be useful to include, since some request libraries attempt to read this header to check for JSON, and alsoAccess-Control-Max-Ageto cache CORS results would be useful.