From f96001ba7c7e5d8bbd33579502943dfafa114f35 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Tue, 12 Dec 2023 12:38:45 +0100 Subject: [PATCH] No issue - Allow redirects for requests that require preflight Spec update, see Bug 1312864 --- netwerk/protocol/http/nsCORSListenerProxy.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/netwerk/protocol/http/nsCORSListenerProxy.cpp b/netwerk/protocol/http/nsCORSListenerProxy.cpp index d2c37415e5..3e58d07dae 100644 --- a/netwerk/protocol/http/nsCORSListenerProxy.cpp +++ b/netwerk/protocol/http/nsCORSListenerProxy.cpp @@ -1038,13 +1038,6 @@ nsCORSListenerProxy::CheckPreflightNeeded(nsIChannel* aChannel, UpdateType aUpda return NS_OK; } - // A preflight is needed. But if we've already been cross-site, then - // we already did a preflight when that happened, and so we're not allowed - // to do another preflight again. - if (aUpdateType != UpdateType::InternalOrHSTSRedirect) { - NS_ENSURE_FALSE(mHasBeenCrossSite, NS_ERROR_DOM_BAD_URI); - } - nsCOMPtr internal = do_QueryInterface(http); NS_ENSURE_TRUE(internal, NS_ERROR_DOM_BAD_URI);