2023-09-18 19:02:09 +05:30
|
|
|
[cors]
|
|
|
|
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
; ;
|
|
|
|
; ; More information about CORS can be found here: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#The_HTTP_response_headers
|
|
|
|
; ; enable cors headers (disabled by default)
|
2023-09-18 20:59:40 +05:30
|
|
|
ENABLED = true
|
2023-09-18 19:02:09 +05:30
|
|
|
; ;
|
|
|
|
; ; scheme of allowed requests
|
|
|
|
; SCHEME = http
|
|
|
|
; ;
|
|
|
|
; ; list of requesting domains that are allowed
|
2023-09-18 20:59:40 +05:30
|
|
|
ALLOW_DOMAIN = *
|
2023-09-18 19:02:09 +05:30
|
|
|
; ;
|
|
|
|
; ; allow subdomains of headers listed above to request
|
|
|
|
; ALLOW_SUBDOMAIN = false
|
|
|
|
; ;
|
|
|
|
; ; list of methods allowed to request
|
2023-09-18 20:59:40 +05:30
|
|
|
METHODS = GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS
|
2023-09-18 19:02:09 +05:30
|
|
|
; ;
|
|
|
|
; ; max time to cache response
|
|
|
|
; MAX_AGE = 10m
|
|
|
|
; ;
|
|
|
|
; ; allow request with credentials
|
|
|
|
ALLOW_CREDENTIALS = true
|
|
|
|
; ;
|
|
|
|
; ; headers to permit
|
2023-09-18 20:59:40 +05:30
|
|
|
HEADERS = Content-Type,User-Agent
|
2023-09-18 19:02:09 +05:30
|
|
|
|
|
|
|
[federation]
|
|
|
|
ENABLED = true
|