Private
Public Access
2
0

caddy: rename cors_allow_* -> cors_allowed_*

This commit is contained in:
2026-02-09 08:45:45 +03:00
parent e3fc368704
commit 00c1f607f8
2 changed files with 16 additions and 16 deletions

View File

@@ -58,35 +58,35 @@ caddy_global_sites_defaults:
# CORS - Cross Origin Resource Sharing
cors: false
cors_allow_origins: [] # Minimum 1 required
cors_allow_methods:
cors_allowed_origins: [] # Minimum 1 required
cors_allowed_methods:
# These variables can be used for adding and removing extensions from the list:
# cors_allow_methods_add: ["XXX"]
# cors_allow_methods_del: ["YYY"]
# cors_allowed_methods_add: ["XXX"]
# cors_allowed_methods_del: ["YYY"]
- "GET"
- "HEAD"
- "POST"
- "OPTIONS"
cors_allow_headers:
cors_allowed_headers:
# These variables can be used for adding and removing extensions from the list:
# cors_allow_headers_add: ["Xxx"]
# cors_allow_headers_del: ["Yyy"]
# cors_allowed_headers_add: ["Xxx"]
# cors_allowed_headers_del: ["Yyy"]
- "Cache-Control"
- "Content-Type"
- "If-Modified-Since"
- "Range"
- "User-Agent"
cors_max_age: 3600
cors_allow_credentials: false
cors_allowed_credentials: false
cors_vary:
# These variables can be used for adding and removing extensions from the list:
# cors_vary_add: ["Xxx"]
# cors_vary_del: ["Yyy"]
- "Origin"
cors_expose_headers:
cors_exposed_headers:
# These variables can be used for adding and removing extensions from the list:
# cors_expose_headers_add: ["Xxx"]
# cors_expose_headers_del: ["Yyy"]
# cors_exposed_headers_add: ["Xxx"]
# cors_exposed_headers_del: ["Yyy"]
- "Content-Length"
- "Content-Range"