Skip to content

Commit

Permalink
dev-server handles relative redirects without crashing.
Browse files Browse the repository at this point in the history
  • Loading branch information
tdilauro committed Jun 22, 2024
1 parent 24dde11 commit 750163e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack.dev-server.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module.exports = (env) => {
return;
}

const locationUrl = new URL(location);
const locationUrl = new URL(location, backendUrl);

if (locationUrl.host !== backendUrl.host) {
return;
Expand Down

0 comments on commit 750163e

Please sign in to comment.