mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibWeb: Implement 'Strip url for use as a referrer' AO
This commit is contained in:
parent
6c1a9b28f1
commit
1e5cac9e9c
Notes:
sideshowbarker
2024-07-17 18:46:30 +09:00
Author: https://github.com/linusg
Commit: 1e5cac9e9c
Pull-request: https://github.com/SerenityOS/serenity/pull/15795
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/davidot ✅
3 changed files with 68 additions and 0 deletions
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Forward.h>
|
||||
|
||||
namespace Web::ReferrerPolicy {
|
||||
|
||||
enum class OriginOnly {
|
||||
Yes,
|
||||
No,
|
||||
};
|
||||
|
||||
Optional<AK::URL> strip_url_for_use_as_referrer(Optional<AK::URL>, OriginOnly origin_only = OriginOnly::No);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue