未验证 提交 1888864b 编写于 作者: A Alex Dima

Add `Access-Control-Allow-Origin: *` to requests made to `/extension/`

上级 3f84c877
......@@ -239,7 +239,9 @@ async function handleExtension(req, res, parsedUrl) {
if (!filePath) {
return serveError(req, res, 400, `Bad request.`);
}
return serveFile(req, res, filePath);
return serveFile(req, res, filePath, {
'Access-Control-Allow-Origin': '*'
});
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册