Shift safari work around to morss.py
parent
74d7a1eca2
commit
ff26a560cb
|
@ -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'] = '*'
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue