From 42087c900ea87e46d2d934d89917191c3f248810 Mon Sep 17 00:00:00 2001 From: Vadim Makeev Date: Thu, 15 Aug 2024 13:29:43 +0100 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D1=8F=D0=B5=D1=82=20?= =?UTF-8?q?=D1=84=D0=B8=D1=87=D1=83=20=D0=B4=D0=BB=D1=8F=20=D0=A2=D0=B5?= =?UTF-8?q?=D0=BB=D0=B5=D0=B3=D1=80=D0=B0=D0=BC=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/nginx.conf b/nginx.conf index 722c4c00e..5f01426cc 100644 --- a/nginx.conf +++ b/nginx.conf @@ -32,23 +32,6 @@ server { location ~ /podcast/(cover\.png|feed|episodes/\d+\.mp3) { root /var/www/web-standards.ru; - - if ($request_method = 'OPTIONS') { - add_header 'Access-Control-Allow-Origin' 'https://instantview.telegram.org'; - add_header 'Access-Control-Allow-Methods' 'GET'; - add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; - add_header 'Access-Control-Max-Age' 1728000; - add_header 'Content-Type' 'text/plain; charset=utf-8'; - add_header 'Content-Length' 0; - return 204; - } - - if ($request_method = 'GET') { - add_header 'Access-Control-Allow-Origin' 'https://instantview.telegram.org'; - add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS'; - add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; - add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range'; - } } ssl_certificate /etc/letsencrypt/live/web-standards.ru/fullchain.pem;