Comparing version 1.3.2 to 1.3.3
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 @@ ================== |
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9923