Shift safari work around to morss.py
This commit is contained in:
		@@ -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>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user