Merge pull request #15121 from jeange1003/main
fix: add CORS methods and headers for lazyCompilation
This commit is contained in:
commit
e84401a81c
|
@ -68,7 +68,9 @@ module.exports = options => (compiler, callback) => {
|
|||
req.socket.setNoDelay(true);
|
||||
res.writeHead(200, {
|
||||
"content-type": "text/event-stream",
|
||||
"Access-Control-Allow-Origin": "*"
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Access-Control-Allow-Methods": "*",
|
||||
"Access-Control-Allow-Headers": "*"
|
||||
});
|
||||
res.write("\n");
|
||||
let moduleActivated = false;
|
||||
|
|
Loading…
Reference in New Issue