mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-07 13:38:43 +00:00
Add a unit test for X-Frame-Options being set
This commit is contained in:
parent
7bc207cdcb
commit
234db487cd
@ -787,6 +787,20 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, testutil.ReallyEqualMixi
|
|||||||
def test_create(self):
|
def test_create(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def test_frame_options(self):
|
||||||
|
"""
|
||||||
|
All pages deny the ability to be loaded in frames.
|
||||||
|
"""
|
||||||
|
d = self.GET("/", return_response=True)
|
||||||
|
def responded(result):
|
||||||
|
_, _, headers = result
|
||||||
|
self.assertEqual(
|
||||||
|
[b"DENY"],
|
||||||
|
headers.getRawHeaders(b"X-Frame-Options"),
|
||||||
|
)
|
||||||
|
d.addCallback(responded)
|
||||||
|
return d
|
||||||
|
|
||||||
def test_welcome_json(self):
|
def test_welcome_json(self):
|
||||||
"""
|
"""
|
||||||
There is a JSON version of the welcome page which can be selected with the
|
There is a JSON version of the welcome page which can be selected with the
|
||||||
|
Loading…
Reference in New Issue
Block a user