1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cryptpad_ynh.git synced 2024-09-03 18:26:14 +02:00

Update old.nginx.conf

This commit is contained in:
Éric Gaspar 2024-05-24 19:22:47 +02:00
parent ee60baeaf1
commit 5c80e0f924

View file

@ -92,7 +92,7 @@ location ~ ^/api/.*$ {
location ~ ^/(blob|block)/.*$ {
if ($request_method = 'OPTIONS') {
more_set_headers "Access-Control-Allow-Origin: ${allowed_origins}";
more_set_headers add_header "Access-Control-Allow-Credentials: true";
more_set_headers "Access-Control-Allow-Credentials: true";
more_set_headers "Access-Control-Allow-Methods: 'GET, POST, OPTIONS'";
more_set_headers "Access-Control-Allow-Headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range";
more_set_headers "Access-Control-Max-Age: 1728000";