Shift safari work around to morss.py

master
pictuga 2020-05-07 16:04:54 +02:00
parent 74d7a1eca2
commit ff26a560cb
2 changed files with 1 additions and 3 deletions

View File

@ -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'] = '*'

View File

@ -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"
<Files ~ "\.(py|pyc|db|log)$">
deny from all
</Files>