Comparing version 3.1.4 to 3.1.5
{ | ||
"name": "zan-proxy", | ||
"version": "v3.1.4", | ||
"version": "v3.1.5", | ||
"description": "前端代理", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -25,2 +25,3 @@ /** | ||
toSendResponse.hasContent = true; | ||
toSendResponse.headers['Access-Control-Allow-Origin'] = '*'; | ||
toSendResponse.headers['Content-Length'] = stat.size; | ||
@@ -27,0 +28,0 @@ toSendResponse.headers['Content-Type'] = contentType + ';charset=utf-8'; |
@@ -23,3 +23,3 @@ /** | ||
// 增加跨域头部 | ||
res.setHeader('access-control-allow-origin', '*'); | ||
res.setHeader('Access-Control-Allow-Origin', '*'); | ||
res.setHeader('Content-Length', stat.size); | ||
@@ -26,0 +26,0 @@ res.setHeader('Content-Type', contentType + ';charset=utf-8'); |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
20831757
9407