doc
This commit is contained in:
@@ -58,9 +58,9 @@ caddy_global_sites_defaults:
|
||||
|
||||
# CORS - Cross Origin Resource Sharing
|
||||
cors: false
|
||||
cors_allowed_origins: [] # Minimum 1 required
|
||||
cors_allowed_origins: [] # Minimum 1 required
|
||||
cors_allowed_methods:
|
||||
# These variables can be used for adding and removing extensions from the list:
|
||||
# These variables can be used for adding and removing methods from the list:
|
||||
# cors_allowed_methods_add: ["XXX"]
|
||||
# cors_allowed_methods_del: ["YYY"]
|
||||
- "GET"
|
||||
@@ -68,7 +68,7 @@ caddy_global_sites_defaults:
|
||||
- "POST"
|
||||
- "OPTIONS"
|
||||
cors_allowed_headers:
|
||||
# These variables can be used for adding and removing extensions from the list:
|
||||
# These variables can be used for adding and removing headers from the list:
|
||||
# cors_allowed_headers_add: ["Xxx"]
|
||||
# cors_allowed_headers_del: ["Yyy"]
|
||||
- "Cache-Control"
|
||||
@@ -79,12 +79,12 @@ caddy_global_sites_defaults:
|
||||
cors_max_age: 3600
|
||||
cors_allowed_credentials: false
|
||||
cors_vary:
|
||||
# These variables can be used for adding and removing extensions from the list:
|
||||
# These variables can be used for adding and removing headers from the list:
|
||||
# cors_vary_add: ["Xxx"]
|
||||
# cors_vary_del: ["Yyy"]
|
||||
- "Origin"
|
||||
cors_exposed_headers:
|
||||
# These variables can be used for adding and removing extensions from the list:
|
||||
# These variables can be used for adding and removing headers from the list:
|
||||
# cors_exposed_headers_add: ["Xxx"]
|
||||
# cors_exposed_headers_del: ["Yyy"]
|
||||
- "Content-Length"
|
||||
@@ -309,7 +309,7 @@ caddy_global_sites_defaults:
|
||||
crs_sampling_percentage: 100
|
||||
crs_allow_method_override_parameter: 0
|
||||
crs_allowed_methods:
|
||||
# These variables can be used for adding and removing extensions from the list:
|
||||
# These variables can be used for adding and removing methods from the list:
|
||||
# crs_allowed_methods_add: ["XXX"]
|
||||
# crs_allowed_methods_del: ["YYY"]
|
||||
- "GET"
|
||||
@@ -317,7 +317,7 @@ caddy_global_sites_defaults:
|
||||
- "POST"
|
||||
- "OPTIONS"
|
||||
crs_allowed_request_content_type:
|
||||
# These variables can be used for adding and removing extensions from the list:
|
||||
# These variables can be used for adding and removing content types from the list:
|
||||
# crs_allowed_request_content_type_add: ["|xxx/yyy|"]
|
||||
# crs_allowed_request_content_type_del: ["|zzz/aaa|"]
|
||||
- "|application/json|"
|
||||
@@ -428,7 +428,7 @@ caddy_global_sites_defaults:
|
||||
- ".xsd/"
|
||||
- ".xsx/"
|
||||
crs_restricted_headers_basic:
|
||||
# These variables can be used for adding and removing extensions from the list:
|
||||
# These variables can be used for adding and removing headers from the list:
|
||||
# crs_restricted_headers_basic_add: ["/xxx/"]
|
||||
# crs_restricted_headers_basic_del: ["/yyy/"]
|
||||
- "/content-encoding/"
|
||||
@@ -442,12 +442,12 @@ caddy_global_sites_defaults:
|
||||
- "/x-method-override/"
|
||||
- "/x-middleware-subrequest/"
|
||||
crs_restricted_headers_extended:
|
||||
# These variables can be used for adding and removing extensions from the list:
|
||||
# These variables can be used for adding and removing headers from the list:
|
||||
# crs_restricted_headers_extended_add: ["/xxx/"]
|
||||
# crs_restricted_headers_extended_del: ["/yyy/"]
|
||||
- "/accept-charset/"
|
||||
crs_allowed_http_versions:
|
||||
# These variables can be used for adding and removing extensions from the list:
|
||||
# These variables can be used for adding and removing protocols from the list:
|
||||
# crs_allowed_http_versions_add: ["HTTP/x.x"]
|
||||
# crs_allowed_http_versions_del: ["HTTP/y.y"]
|
||||
- "HTTP/1.0"
|
||||
@@ -457,7 +457,7 @@ caddy_global_sites_defaults:
|
||||
- "HTTP/3"
|
||||
- "HTTP/3.0"
|
||||
crs_allowed_request_content_type_charset:
|
||||
# These variables can be used for adding and removing extensions from the list:
|
||||
# These variables can be used for adding and removing charsets from the list:
|
||||
# crs_allowed_request_content_type_charset_add: ["|xxx|"]
|
||||
# crs_allowed_request_content_type_charset_del: ["|yyy|"]
|
||||
- "|utf-8|"
|
||||
|
||||
Reference in New Issue
Block a user