Huge News!Announcing our $40M Series B led by Abstract Ventures.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.1.0 to 4.1.1

8

index.js

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

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