Skip to content

Commit

Permalink
Don't use CORS proxy when accessing local resources
Browse files Browse the repository at this point in the history
  • Loading branch information
timangus committed Jul 18, 2024
1 parent 2fb574f commit bdff35d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/shared/utils/downloadqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ bool DownloadQueue::add(QUrl url)
QUrl hostUrl(QString::fromStdString(location["href"].as<std::string>()));

// Cross origin measures are only necessary when actually going cross origin
if(hostUrl.host() != url.host())
if(hostUrl.host() != url.host() && url.host() != u"localhost"_s && !url.isLocalFile())
{
// If the environment variable CORS_PROXY is present then prepend
// it to the resource being downloaded, so that the WebAssembly
Expand Down

0 comments on commit bdff35d

Please sign in to comment.