authorization: allow auth related CORS Headers

Allow Authorization, X-Api-Key, and X-Access-Token headers when CORS is enabled.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine authored and Arksine committed 2021-04-19 20:46:17 -04:00
1 parent 7eba8e58e3
commit 4e0e223599
1 file changed
+2 -1
+2 -1
View File
@@ -487,7 +487,8 @@ class Authorization:
request.set_header(
"Access-Control-Allow-Headers",
"Origin, Accept, Content-Type, X-Requested-With, "
"X-CRSF-Token")
"X-CRSF-Token, Authorization, X-Access-Token, "
"X-Api-Key")
def close(self):
self.prune_handler.stop()