mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +00:00
LibWeb: Implement 'Should response be blocked due to nosniff?' AO
This commit is contained in:
parent
7e46150a71
commit
58ad6de954
Notes:
sideshowbarker
2024-07-17 07:38:17 +09:00
Author: https://github.com/linusg
Commit: 58ad6de954
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 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