1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:37:43 +00:00

LibWeb: Implement 'CORS check' / 'TAO check' AOs

This commit is contained in:
Linus Groh 2022-10-23 18:36:31 +02:00
parent 8db64a8704
commit 361ab205fa
3 changed files with 103 additions and 0 deletions

View 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&);
}