New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lws-cors

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lws-cors - npm Package Compare versions

Comparing version 4.2.0 to 4.2.1

5

index.js

@@ -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,

6

package.json
{
"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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc