mirror of
https://github.com/YunoHost-Apps/cryptpad_ynh.git
synced 2024-09-03 18:26:14 +02:00
Update nginx.conf
This commit is contained in:
parent
0a8265a7bf
commit
821f80b79e
1 changed files with 5 additions and 5 deletions
|
@ -5,11 +5,11 @@ set $api_domain "__DOMAIN__";
|
||||||
set $files_domain "__DOMAIN__";
|
set $files_domain "__DOMAIN__";
|
||||||
ssl_ecdh_curve secp384r1;
|
ssl_ecdh_curve secp384r1;
|
||||||
|
|
||||||
add_header "X-XSS-Protection: '1; mode=block'";
|
more_set_headers "X-XSS-Protection: 1; mode=block";
|
||||||
add_header "X-Content-Type-Options: nosniff";
|
more_set_headers "X-Content-Type-Options: nosniff";
|
||||||
add_header "Access-Control-Allow-Origin: '${allowed_origins}'";
|
more_set_headers "Access-Control-Allow-Origin: ${allowed_origins}";
|
||||||
add_header "Access-Control-Allow-Credentials: true;
|
more_set_headers "Access-Control-Allow-Credentials: true";
|
||||||
# add_header "X-Frame-Options: 'SAMEORIGIN'";
|
# more_set_headers "X-Frame-Options: SAMEORIGIN";
|
||||||
|
|
||||||
# Enable SharedArrayBuffer in Firefox (for .xlsx export)
|
# Enable SharedArrayBuffer in Firefox (for .xlsx export)
|
||||||
more_set_headers "Cross-Origin-Resource-Policy: cross-origin";
|
more_set_headers "Cross-Origin-Resource-Policy: cross-origin";
|
||||||
|
|
Loading…
Add table
Reference in a new issue