LibWeb/CSP: Implement the report-to directive

This doesn't do anything by itself, the report a violation algorithm
will handle this directive itself.
This commit is contained in:
Luke Wilde 2024-12-04 14:43:15 +00:00 committed by Alexander Kalenik
commit 855e17529c
Notes: github-actions[bot] 2025-08-07 17:26:50 +00:00
5 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,18 @@
/*
* Copyright (c) 2024, Luke Wilde <luke@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/ContentSecurityPolicy/Directives/ReportToDirective.h>
namespace Web::ContentSecurityPolicy::Directives {
GC_DEFINE_ALLOCATOR(ReportToDirective);
ReportToDirective::ReportToDirective(String name, Vector<String> value)
: Directive(move(name), move(value))
{
}
}