Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kcors

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kcors - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

6

History.md
1.3.3 / 2017-09-13
==================
**fixes**
* [[`aff741c`](http://github.com/koajs/cors/commit/aff741c8e5fab021b535d0184ca45f71139d1d85)] - fix: should alway set vary origin header (#37) (Yiyu He <<dead_horse@qq.com>>)
1.3.2 / 2017-02-13

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

8

index.js

@@ -48,2 +48,6 @@ 'use strict';

return function* cors(next) {
// Always set Vary header
// https://github.com/rs/cors/issues/10
this.vary('Origin');
// If the Origin header is not present terminate this set of steps. The request is outside the scope of this specification.

@@ -57,6 +61,2 @@ var requestOrigin = this.get('Origin');

// Always set Vary header
// https://github.com/rs/cors/issues/10
this.vary('Origin');
if (typeof options.origin === 'function') {

@@ -63,0 +63,0 @@ if (options.origin.constructor.name === 'GeneratorFunction') {

{
"name": "kcors",
"version": "1.3.2",
"version": "1.3.3",
"description": "Cross-Origin Resource Sharing(CORS) for koa",

@@ -39,3 +39,8 @@ "main": "index.js",

"keywords": [
"cors", "koa-cors", "Cross-Origin Resource Sharing", "kcors", "koa", "koajs"
"cors",
"koa-cors",
"Cross-Origin Resource Sharing",
"kcors",
"koa",
"koajs"
],

@@ -47,2 +52,2 @@ "engines": {

"license": "MIT"
}
}
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