mirror of
https://github.com/mikedilger/chorus.git
synced 2026-08-01 07:21:39 +00:00
Allow Authorization Header explicitly (outside of OPTIONS)
This commit is contained in:
parent
add3a9da9c
commit
f1851e793b
@ -24,7 +24,7 @@ fn respond(
|
||||
let s: String = serde_json::to_string(&json)?;
|
||||
let response = Response::builder()
|
||||
.header("Access-Control-Allow-Origin", "*")
|
||||
.header("Access-Control-Allow-Headers", "*")
|
||||
.header("Access-Control-Allow-Headers", "Authorization, *")
|
||||
.header("Access-Control-Allow-Methods", "*")
|
||||
.header("Content-Type", "application/nostr+json+rpc")
|
||||
.status(status)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user