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);