Caddyfile: Corrected CORS preflight response

This commit is contained in:
Lumière Élevé 2024-08-24 19:47:30 +01:00 committed by GitHub
parent 7fff13850f
commit d58b5125b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -208,6 +208,8 @@ your-sandbox-domain.com:443 {
handle @blobsAndBlocks {
@corsPreflight {
method OPTIONS
}
handle @corsPreflight {
header Access-Control-Allow-Origin "https://your-sandbox-domain.com"
header Access-Control-Allow-Credentials "true"
header Access-Control-Allow-Methods "GET, POST, OPTIONS"