2
0
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:
Oliver 2024-03-14 23:06:11 +11:00 committed by GitHub
parent ec5ff6408d
commit cbd94fc4b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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