Comparing version 4.1.0 to 4.1.1
@@ -40,6 +40,8 @@ import kcors from '@koa/cors' | ||
if (config.corsCredentials) corsOptions.credentials = config.corsCredentials | ||
if (config.corsOpenerPolicy) corsOptions.openerPolicy = config.corsOpenerPolicy | ||
if (config.corsEmbedderPolicy) corsOptions.embedderPolicy = config.corsEmbedderPolicy | ||
this.emit('verbose', 'middleware.cors.config', corsOptions) | ||
this.emit('verbose', 'middleware.cors.config', { | ||
...corsOptions, | ||
openerPolicy: config.corsOpenerPolicy, | ||
embedderPolicy: config.corsEmbedderPolicy | ||
}) | ||
const koaCorsMiddleware = kcors(corsOptions) | ||
@@ -46,0 +48,0 @@ |
{ | ||
"name": "lws-cors", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Support for setting Cross-Origin Resource Sharing (CORS) headers to lws", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/lwsjs/cors.git", |
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
56
5576