[devtools] Don't allow sourcemap URLs to redirect

This commit is contained in:
Moonchild 2023-04-12 17:28:19 +02:00 • committed by roytam1
commit 47bcca168c

View file

@ -87,7 +87,8 @@ async function _resolveAndFetch(generatedSource) : SourceMapConsumer {
// Fetch the sourcemap over the network and create it. // Fetch the sourcemap over the network and create it.
const sourceMapURL = _resolveSourceMapURL(generatedSource); const sourceMapURL = _resolveSourceMapURL(generatedSource);
const fetched = await fetch( const fetched = await fetch(
sourceMapURL, { loadFromCache: false } sourceMapURL, { loadFromCache: false,
redirect: error }
); );
// Create the source map and fix it up. // Create the source map and fix it up.