j49_c commited on
Commit
e237d7e
·
1 Parent(s): 18ecad3

Removed X-Frame-Options to allow iframe embedding on custom domain

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -38,7 +38,6 @@ app.config.update(
38
  @app.after_request
39
  def add_security_headers(response):
40
  response.headers['X-Content-Type-Options'] = 'nosniff'
41
- response.headers['X-Frame-Options'] = 'SAMEORIGIN'
42
  response.headers['X-XSS-Protection'] = '1; mode=block'
43
  response.headers['Strict-Transport-Security'] = 'max-age=31536000; includeSubDomains'
44
  return response
 
38
  @app.after_request
39
  def add_security_headers(response):
40
  response.headers['X-Content-Type-Options'] = 'nosniff'
 
41
  response.headers['X-XSS-Protection'] = '1; mode=block'
42
  response.headers['Strict-Transport-Security'] = 'max-age=31536000; includeSubDomains'
43
  return response