Skip to content

Commit e84401a

Browse files
authored
Merge pull request #15121 from jeange1003/main
fix: add CORS methods and headers for lazyCompilation
2 parents ccecc17 + 8e914b7 commit e84401a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/hmr/lazyCompilationBackend.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ module.exports = options => (compiler, callback) => {
6868
req.socket.setNoDelay(true);
6969
res.writeHead(200, {
7070
"content-type": "text/event-stream",
71-
"Access-Control-Allow-Origin": "*"
71+
"Access-Control-Allow-Origin": "*",
72+
"Access-Control-Allow-Methods": "*",
73+
"Access-Control-Allow-Headers": "*"
7274
});
7375
res.write("\n");
7476
let moduleActivated = false;

0 commit comments

Comments
 (0)