mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 18:57:34 +00:00
LibWeb: Implement 'Should response be blocked due to nosniff?' AO
This commit is contained in:
parent
7e46150a71
commit
58ad6de954
3 changed files with 76 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Forward.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/RequestOrResponseBlocking.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::Fetch::Infrastructure {
|
||||
|
||||
ErrorOr<bool> determine_nosniff(HeaderList const&);
|
||||
ErrorOr<RequestOrResponseBlocking> should_response_to_request_be_blocked_due_to_nosniff(Response const&, Request const&);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue