Running Datasette with --cors
doesn't allow Authorization header to be passed in
#4
Labels
bug
Something isn't working
Hi Simon! I'm really enjoying Datasette so far. Wanted to ask about a small incompatibility with this plugin, and offer to submit a PR with some guidance.
Running Datasette with the
--cors
command line option sets theAccess-Control-Allow-Origin
header, as expected. However, when I use this plugin and pass in anAuthorization
header, my web browsers block the request because Datasette's response does not include aAccess-Control-Allow-Headers
header with a value that includesAuthorization
. This means the authorized request is blocked by the browser.Is there a way that this plugin, when running in a Datasette instance instantiated with the
--cors
flag, could set the pages to return theAccess-Control-Allow-Headers
header as well?Thanks!
James
The text was updated successfully, but these errors were encountered: