Comparing version 4.2.0 to 4.2.1
@@ -47,2 +47,7 @@ import kcors from '@koa/cors' | ||
/* See https://github.com/koajs/cors/issues/94 */ | ||
corsOptions.origin = function origin (ctx) { | ||
return ctx.get('origin') || '*' | ||
} | ||
this.emit('verbose', 'middleware.cors.config', { | ||
@@ -49,0 +54,0 @@ ...corsOptions, |
{ | ||
"name": "lws-cors", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "Support for setting Cross-Origin Resource Sharing (CORS) headers to lws", | ||
@@ -22,7 +22,7 @@ "repository": "https://github.com/lwsjs/cors", | ||
"dependencies": { | ||
"@koa/cors": "^3.4.3" | ||
"@koa/cors": "^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"lws": "^4.1.2", | ||
"node-fetch": "^3.3.0", | ||
"node-fetch": "^3.3.2", | ||
"test-runner": "^0.10.1" | ||
@@ -29,0 +29,0 @@ }, |
6207
64
+ Added@koa/cors@5.0.0(transitive)
- Removed@koa/cors@3.4.3(transitive)
Updated@koa/cors@^5.0.0