LibWeb: Enforce Content Security Policy of Fetch responses

This commit is contained in:
Luke Wilde 2024-11-28 12:30:36 +00:00 committed by Alexander Kalenik
parent 51796e2d3a
commit 7643a079c0
Notes: github-actions[bot] 2025-03-18 23:56:07 +00:00
3 changed files with 38 additions and 2 deletions

View file

@ -12,5 +12,6 @@ namespace Web::ContentSecurityPolicy {
void report_content_security_policy_violations_for_request(JS::Realm&, GC::Ref<Fetch::Infrastructure::Request>);
[[nodiscard]] Directives::Directive::Result should_request_be_blocked_by_content_security_policy(JS::Realm&, GC::Ref<Fetch::Infrastructure::Request>);
[[nodiscard]] Directives::Directive::Result should_response_to_request_be_blocked_by_content_security_policy(JS::Realm&, GC::Ref<Fetch::Infrastructure::Response>, GC::Ref<Fetch::Infrastructure::Request>);
}