Comparing version 11.2.0 to 11.3.0
@@ -187,2 +187,5 @@ #!/usr/bin/env node | ||
const serverHandler = async (request, response) => { | ||
if (args['--cors']) { | ||
response.setHeader('Access-Control-Allow-Origin', '*'); | ||
} | ||
if (compress) { | ||
@@ -370,2 +373,3 @@ await compressionHandler(request, response); | ||
'--symlinks': Boolean, | ||
'--cors': Boolean, | ||
'--ssl-cert': String, | ||
@@ -382,2 +386,3 @@ '--ssl-key': String, | ||
'-S': '--symlinks', | ||
'-C': '--cors', | ||
// This is deprecated and only for backwards-compatibility. | ||
@@ -384,0 +389,0 @@ '-p': '--listen' |
{ | ||
"name": "serve", | ||
"version": "11.2.0", | ||
"version": "11.3.0", | ||
"description": "Static file serving and directory listing", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17017
350