diff options
| author | Szabolcs David <davidsz@inf.u-szeged.hu> | 2025-10-20 15:21:31 +0200 |
|---|---|---|
| committer | Szabolcs David <davidsz@inf.u-szeged.hu> | 2025-11-06 15:08:44 +0100 |
| commit | 48ba78f27354a0252d09410203ce4191d6129d57 (patch) | |
| tree | e52b59d9f410c60a14085ff169fba2ad22f4a50f /src/core/api/qwebenginescript.cpp | |
| parent | 2ebb596b43346c5bf93fc9a460e241a812313c0e (diff) | |
Allow redirecting fetch() to cross origin resources
We use CorsURLLoader since the 124-based Chromium. This performs a
safety check on calling CorsURLLoader::OnReceiveRedirect(), since
fetch() requests have more strict rules when accessing cross origin
resources.
This patch extends our dummy response with the Allow-Origin header
(only in case of redirects), so the request interceptor API users
won't hit this wall.
Test case implemented by: Benjamin Terrier
Task-number: QTBUG-140889
Change-Id: I7025fb69b5ac9b8763d61cb2bf0880dcc20721cf
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/api/qwebenginescript.cpp')
0 files changed, 0 insertions, 0 deletions
