mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 23:27:30 +09:00
No issue - Allow redirects for requests that require preflight
Spec update, see Bug 1312864
This commit is contained in:
parent
eba87b03fd
commit
f96001ba7c
1 changed files with 0 additions and 7 deletions
|
|
@ -1038,13 +1038,6 @@ nsCORSListenerProxy::CheckPreflightNeeded(nsIChannel* aChannel, UpdateType aUpda
|
||||||
return NS_OK;
|
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<nsIHttpChannelInternal> internal = do_QueryInterface(http);
|
nsCOMPtr<nsIHttpChannelInternal> internal = do_QueryInterface(http);
|
||||||
NS_ENSURE_TRUE(internal, NS_ERROR_DOM_BAD_URI);
|
NS_ENSURE_TRUE(internal, NS_ERROR_DOM_BAD_URI);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue