From ff26a560cbae0a14fb045c0d12050da6c66894e5 Mon Sep 17 00:00:00 2001 From: pictuga Date: Thu, 7 May 2020 16:04:54 +0200 Subject: [PATCH] Shift safari work around to morss.py --- morss/morss.py | 1 + www/.htaccess | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/morss/morss.py b/morss/morss.py index 117058d..e7f71c8 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -487,6 +487,7 @@ def cgi_app(environ, start_response): # headers headers['status'] = '200 OK' headers['cache-control'] = 'max-age=%s' % DELAY + headers['x-content-type-options'] = 'nosniff' # safari work around if options.cors: headers['access-control-allow-origin'] = '*' diff --git a/www/.htaccess b/www/.htaccess index 4a07f46..9b5238d 100644 --- a/www/.htaccess +++ b/www/.htaccess @@ -4,9 +4,6 @@ ErrorDocument 403 "Access forbidden" ErrorDocument 404 /cgi/main.py ErrorDocument 500 "A very nasty bug found his way onto this very server" -# Work around for Safari -Header set X-Content-Type-Options "nosniff" - deny from all