Add anti-framing header to all responses. (#1913)
This commit is contained in:
Родитель
14de806d0f
Коммит
1d5d66f081
|
@ -144,6 +144,7 @@ class APIHandler(BaseHandler):
|
|||
'Strict-Transport-Security':
|
||||
'max-age=63072000; includeSubDomains; preload',
|
||||
'X-UA-Compatible': 'IE=Edge,chrome=1',
|
||||
'X-Frame-Options': 'DENY',
|
||||
}
|
||||
return headers
|
||||
|
||||
|
@ -267,6 +268,7 @@ class FlaskHandler(BaseHandler):
|
|||
'Strict-Transport-Security':
|
||||
'max-age=63072000; includeSubDomains; preload',
|
||||
'X-UA-Compatible': 'IE=Edge,chrome=1',
|
||||
'X-Frame-Options': 'DENY',
|
||||
}
|
||||
headers.update(self.get_cache_headers())
|
||||
return headers
|
||||
|
|
|
@ -312,6 +312,7 @@ class APIHandlerTests(testing_config.CustomTestCase):
|
|||
{'Strict-Transport-Security':
|
||||
'max-age=63072000; includeSubDomains; preload',
|
||||
'X-UA-Compatible': 'IE=Edge,chrome=1',
|
||||
'X-Frame-Options': 'DENY',
|
||||
},
|
||||
actual)
|
||||
|
||||
|
@ -449,6 +450,7 @@ class FlaskHandlerTests(testing_config.CustomTestCase):
|
|||
{'Strict-Transport-Security':
|
||||
'max-age=63072000; includeSubDomains; preload',
|
||||
'X-UA-Compatible': 'IE=Edge,chrome=1',
|
||||
'X-Frame-Options': 'DENY',
|
||||
},
|
||||
actual)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче