LibWeb: Support the X-Frame-Options header

Navigation responses are now checked for adherence to the
`X-Frame-Options` header and an error is shown accordingly.
This commit is contained in:
Glenn Skrzypczak 2024-12-05 00:33:35 +01:00 committed by Tim Ledbetter
commit 156f9fff32
Notes: github-actions[bot] 2024-12-07 08:38:54 +00:00
5 changed files with 88 additions and 3 deletions

View file

@ -97,4 +97,5 @@ struct NonFetchSchemeNavigationParams : JS::Cell {
void visit_edges(Visitor& visitor) override;
};
bool check_a_navigation_responses_adherence_to_x_frame_options(GC::Ptr<Fetch::Infrastructure::Response> response, Navigable* navigable, URL::Origin destination_origin);
}