ladybird/Libraries/LibWeb/ContentSecurityPolicy/Directives/ReportUriDirective.h
Luke Wilde ed0230bb93 LibWeb/CSP: Implement the report-uri directive
This doesn't do anything by itself, the report a violation algorithm
will handle this directive itself.
2025-08-07 19:24:39 +02:00

25 lines
567 B
C++

/*
* Copyright (c) 2024, Luke Wilde <luke@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/ContentSecurityPolicy/Directives/Directive.h>
namespace Web::ContentSecurityPolicy::Directives {
// https://w3c.github.io/webappsec-csp/#directive-report-uri
class ReportUriDirective final : public Directive {
GC_CELL(ReportUriDirective, Directive)
GC_DECLARE_ALLOCATOR(ReportUriDirective);
public:
virtual ~ReportUriDirective() = default;
private:
ReportUriDirective(String name, Vector<String> value);
};
}