Merge pull request #15121 from jeange1003/main

fix: add CORS methods and headers for lazyCompilation
This commit is contained in:
Tobias Koppers 2022-01-10 13:40:38 +01:00 committed by GitHub
commit e84401a81c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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;