mirror of
https://github.com/sissbruecker/linkding.git
synced 2026-03-11 12:23:13 +08:00
Allow sandboxes scripts when viewing assets (#1252)
This commit is contained in:
@@ -151,7 +151,7 @@ class BookmarkAssetViewTestCase(TestCase, BookmarkFactoryMixin):
|
||||
response["Content-Disposition"],
|
||||
f'inline; filename="{asset.display_name}.html"',
|
||||
)
|
||||
self.assertEqual(response["Content-Security-Policy"], "sandbox")
|
||||
self.assertEqual(response["Content-Security-Policy"], "sandbox allow-scripts")
|
||||
|
||||
def test_uploaded_file_download_headers(self):
|
||||
bookmark = self.setup_bookmark()
|
||||
@@ -163,4 +163,4 @@ class BookmarkAssetViewTestCase(TestCase, BookmarkFactoryMixin):
|
||||
response["Content-Disposition"],
|
||||
f'inline; filename="{asset.display_name}"',
|
||||
)
|
||||
self.assertEqual(response["Content-Security-Policy"], "sandbox")
|
||||
self.assertEqual(response["Content-Security-Policy"], "sandbox allow-scripts")
|
||||
|
||||
Reference in New Issue
Block a user