mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:17:45 +00:00
LibWeb: Implement 'CORS check' / 'TAO check' AOs
This commit is contained in:
parent
8db64a8704
commit
361ab205fa
3 changed files with 103 additions and 0 deletions
17
Userland/Libraries/LibWeb/Fetch/Fetching/Checks.h
Normal file
17
Userland/Libraries/LibWeb/Fetch/Fetching/Checks.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Forward.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::Fetch::Fetching {
|
||||
|
||||
ErrorOr<bool> cors_check(Infrastructure::Request const&, Infrastructure::Response const&);
|
||||
ErrorOr<bool> tao_check(Infrastructure::Request const&, Infrastructure::Response const&);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue