From 143ab2dcdb332d06d2960988b3cdd7454307da6f Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Fri, 6 Mar 2020 15:04:51 +0100 Subject: [PATCH 1/5] Fix interval in changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba624a4f..e5e77d16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a ### Added -- Switch between daily, weekly and yearly views +- Switch between daily, monthly and yearly views - `ACKEE_ALLOW_ORIGIN` now supports multiple domains (#79 #82, thanks @jaryl) ### Improved From d06ecf281ab1bbf2408e19b07b8966f0a5513e23 Mon Sep 17 00:00:00 2001 From: Jaryl Sim Date: Tue, 10 Mar 2020 00:10:15 +0800 Subject: [PATCH 2/5] Include origin header in check for supporting multiple hosts. --- src/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.js b/src/server.js index 2e5eb5ab..23a87a39 100644 --- a/src/server.js +++ b/src/server.js @@ -53,7 +53,7 @@ const attachCorsHeaders = (fn) => async (req, res) => { if (process.env.ACKEE_ALLOW_ORIGIN) { const origins = process.env.ACKEE_ALLOW_ORIGIN.split(',') - return origins.find((origin) => origin.includes(req.headers.host)) + return origins.find((origin) => origin.includes(req.headers.origin) || origin.includes(req.headers.host)) } })() From e493d7b03d30d56b5b3151b5d4053da22249eea1 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Wed, 25 Mar 2020 09:39:47 +0100 Subject: [PATCH 3/5] Add nuxt-ackee to related modules --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f7663d5d..95a3738a 100644 --- a/README.md +++ b/README.md @@ -100,3 +100,4 @@ More documentation and guides are located in [the /docs folder](docs/). Also tak - [gatsby-plugin-ackee-tracker](https://github.com/Burnsy/gatsby-plugin-ackee-tracker) - Gatsby plugin for Ackee - [Soapberry](https://wordpress.org/plugins/soapberry/) - WordPress plugin for Ackee - [use-ackee](https://github.com/electerious/use-ackee) - Use Ackee in React +- [nuxt-ackee](https://github.com/bdrtsky/nuxt-ackee) - Nuxt.js module for Ackee \ No newline at end of file From a6d4565b6fabdf865735c40b6f21fc82fad65232 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Wed, 25 Mar 2020 09:45:55 +0100 Subject: [PATCH 4/5] Updated changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5e77d16..15dd5ab7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [1.6.1] - 2020-03-25 + +### Fixed + +- Origin header check for multiple hosts (#84, thanks @jaryl) + ## [1.6.0] - 2020-03-06 ### Added From 8e5238efc4a40cd2cf09381056a4e789f48ade83 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Wed, 25 Mar 2020 09:46:06 +0100 Subject: [PATCH 5/5] Update version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 28f314c1..8977e8fa 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ackee", "private": true, - "version": "1.6.0", + "version": "1.6.1", "authors": [ "Tobias Reich " ],