Fix for caddyfile (#6712)
- Add "authorization" to Access-Control-Allow-Headers - CORS requests actually *work* now
This commit is contained in:
parent
ec5ff6408d
commit
cbd94fc4b5
|
|
@ -10,9 +10,10 @@
|
|||
}
|
||||
|
||||
(cors-headers) {
|
||||
header Allow GET,HEAD,OPTIONS
|
||||
header Access-Control-Allow-Origin *
|
||||
header Access-Control-Allow-Methods GET,HEAD,OPTIONS
|
||||
header Access-Control-Allow-Headers User-Agent,Content-Type
|
||||
header Access-Control-Allow-Headers Authorization,Content-Type,User-Agent
|
||||
|
||||
@cors_preflight{args[0]} method OPTIONS
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue