feat: block crawlers from production webapp
This commit is contained in:
@@ -661,6 +661,7 @@ class WebAppSecurityTests(unittest.IsolatedAsyncioTestCase):
|
||||
self.assertNotIn("'unsafe-eval'", csp)
|
||||
self.assertIn("img-src 'self' data: blob: https:;", csp)
|
||||
self.assertNotIn("img-src 'self' data: https: http:;", csp)
|
||||
self.assertEqual(response.headers["X-Robots-Tag"], "noindex, nofollow, noarchive")
|
||||
|
||||
|
||||
class AdminSettingsSecurityTests(unittest.IsolatedAsyncioTestCase):
|
||||
|
||||
Reference in New Issue
Block a user