mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-09 02:21:53 +00:00
LibWeb: Enforce Content Security Policy on Fetch requests
This commit is contained in:
parent
86170f4bfd
commit
6f771f45e2
Notes:
github-actions[bot]
2025-03-18 23:56:19 +00:00
Author: https://github.com/Lubrsi
Commit: 6f771f45e2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3972
5 changed files with 122 additions and 2 deletions
15
Libraries/LibWeb/ContentSecurityPolicy/BlockingAlgorithms.h
Normal file
15
Libraries/LibWeb/ContentSecurityPolicy/BlockingAlgorithms.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Copyright (c) 2025, Luke Wilde <luke@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/ContentSecurityPolicy/Directives/Directive.h>
|
||||
|
||||
namespace Web::ContentSecurityPolicy {
|
||||
|
||||
[[nodiscard]] Directives::Directive::Result should_request_be_blocked_by_content_security_policy(JS::Realm&, GC::Ref<Fetch::Infrastructure::Request>);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue