Commit 311d9c3b authored by Ave's avatar Ave 🤔

Set CORS on HTTP modules

parent 4c71ee20
......@@ -193,6 +193,11 @@ listen:
"/bosh": mod_bosh
"/oauth": ejabberd_oauth
"/api": mod_http_api
custom_headers:
"Access-Control-Allow-Origin": "*"
"Access-Control-Allow-Methods": "OPTIONS, HEAD, GET, POST, PUT"
"Access-Control-Allow-Headers": "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range"
"Access-Control-Expose-Headers": "Content-Length,Content-Range,Content-Type"
## "/pub/archive": mod_http_fileserver
# web_admin: true
## register: true
......@@ -203,6 +208,11 @@ listen:
ip: "::"
module: ejabberd_http
tls: true
custom_headers:
"Access-Control-Allow-Origin": "*"
"Access-Control-Allow-Methods": "OPTIONS, HEAD, GET, POST, PUT"
"Access-Control-Allow-Headers": "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range"
"Access-Control-Expose-Headers": "Content-Length,Content-Range,Content-Type"
http_bind: true
# web_admin: true
## register: true
......@@ -280,6 +290,11 @@ listen:
request_handlers:
"": mod_http_upload
tls: true
custom_headers:
"Access-Control-Allow-Origin": "*"
"Access-Control-Allow-Methods": "OPTIONS, HEAD, GET, POST, PUT"
"Access-Control-Allow-Headers": "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range"
"Access-Control-Expose-Headers": "Content-Length,Content-Range,Content-Type"
# protocol_options: 'TLS_OPTIONS'
# dhfile: 'DH_FILE'
# ciphers: 'TLS_CIPHERS'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment