Skip to content

Commit b67bf4f

Browse files
committed
Remove experimental and non-spec CSP directives
1 parent c838fd0 commit b67bf4f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/test_security.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ def test_add_directive_sources(self):
269269
("base-uri", "base_uri"),
270270
("child-src", "child_src"),
271271
("connect-src", "connect_src"),
272-
# ("fenced-frame-src", "fenced_frame_src"), # Experimental
273272
("font-src", "font_src"),
274273
("form-action", "form_action"),
275274
("frame-ancestors", "frame_ancestors"),
@@ -285,8 +284,11 @@ def test_add_directive_sources(self):
285284
("style-src", "style_src"),
286285
("style-src-attr", "style_src_attr"),
287286
("style-src-elem", "style_src_elem"),
288-
# ("trusted-types", "trusted_types"), # Not technically part of the CSP spec
289287
("worker-src", "worker_src"),
288+
# Experimental
289+
# ("fenced-frame-src", "fenced_frame_src"), # noqa: ERA001
290+
# Not technically part of the CSP spec
291+
# ("trusted-types", "trusted_types"), # noqa: ERA001
290292
]
291293
for directive, method in directives:
292294
generator = CspGenerator()

0 commit comments

Comments
 (0)