mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
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) {
|
(cors-headers) {
|
||||||
|
header Allow GET,HEAD,OPTIONS
|
||||||
header Access-Control-Allow-Origin *
|
header Access-Control-Allow-Origin *
|
||||||
header Access-Control-Allow-Methods GET,HEAD,OPTIONS
|
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
|
@cors_preflight{args[0]} method OPTIONS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user