Socket
Socket
Sign inDemoInstall

@koa/cors

Package Overview
Dependencies
Maintainers
9
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@koa/cors - npm Package Compare versions

Comparing version 3.4.2 to 3.4.3

6

History.md
3.4.3 / 2022-10-08
==================
**others**
* [[`208b86c`](http://github.com/koajs/cors/commit/208b86c893013d65e4479219aae0763b807bc8a6)] - Revert "fix: Calling all options even if origin header is not present (#87)" (fengmk2 <<fengmk2@gmail.com>>)
3.4.2 / 2022-10-06

@@ -3,0 +9,0 @@ ==================

2

index.js

@@ -61,2 +61,4 @@ 'use strict';

if (!requestOrigin) return await next();
let origin;

@@ -63,0 +65,0 @@ if (typeof options.origin === 'function') {

2

package.json
{
"name": "@koa/cors",
"version": "3.4.2",
"version": "3.4.3",
"description": "Cross-Origin Resource Sharing(CORS) for koa",

@@ -5,0 +5,0 @@ "main": "index.js",

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