mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:17:36 +00:00
LibWeb: Add referrer policy to Fetch::Infrastructure::Request
The enum is in its own directory and namespace as there's a standalone spec for it, that will later also house AOs. - https://w3c.github.io/webappsec-referrer-policy/ - https://www.w3.org/TR/referrer-policy/
This commit is contained in:
parent
a602a4c780
commit
dc6fb43d26
3 changed files with 32 additions and 1 deletions
23
Userland/Libraries/LibWeb/ReferrerPolicy/ReferrerPolicy.h
Normal file
23
Userland/Libraries/LibWeb/ReferrerPolicy/ReferrerPolicy.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace Web::ReferrerPolicy {
|
||||
|
||||
// https://w3c.github.io/webappsec-referrer-policy/#enumdef-referrerpolicy
|
||||
enum class ReferrerPolicy {
|
||||
NoReferrer,
|
||||
NoReferrerWhenDowngrade,
|
||||
SameOrigin,
|
||||
Origin,
|
||||
StrictOrigin,
|
||||
OriginWhenCrossOrigin,
|
||||
StrictOriginWhenCrossOrigin,
|
||||
UnsafeURL,
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue