@tinyhttp/cors
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -7,3 +7,3 @@ import { vary } from 'es-vary'; | ||
const cors = (opts = {}) => { | ||
const { origin = '*', methods = ['GET', 'HEAD', 'PUT', 'PATCH', 'POST', 'DELETE'], allowedHeaders, exposedHeaders, credentials, maxAge, optionsSuccessStatus = 204, preflightContinue = false } = opts; | ||
const { origin = '*', methods = ['GET', 'HEAD', 'PUT', 'PATCH', 'POST', 'DELETE'], allowedHeaders, exposedHeaders, credentials, maxAge, optionsSuccessStatus = 204, preflightContinue = true } = opts; | ||
return (req, res, next) => { | ||
@@ -10,0 +10,0 @@ // Checking the type of the origin property |
{ | ||
"name": "@tinyhttp/cors", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "tinyhttp CORS module", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
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
8791