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;