Skip to content

Commit 27509fc

Browse files
authored
Merge pull request #85 from electerious/develop
v1.6.1
2 parents 6393198 + 8e5238e commit 27509fc

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

Diff for: CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@ All notable changes to this project will be documented in this file.
44

55
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).
66

7+
## [1.6.1] - 2020-03-25
8+
9+
### Fixed
10+
11+
- Origin header check for multiple hosts (#84, thanks @jaryl)
12+
713
## [1.6.0] - 2020-03-06
814

915
### Added
1016

11-
- Switch between daily, weekly and yearly views
17+
- Switch between daily, monthly and yearly views
1218
- `ACKEE_ALLOW_ORIGIN` now supports multiple domains (#79 #82, thanks @jaryl)
1319

1420
### Improved

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,4 @@ More documentation and guides are located in [the /docs folder](docs/). Also tak
100100
- [gatsby-plugin-ackee-tracker](https://github.com/Burnsy/gatsby-plugin-ackee-tracker) - Gatsby plugin for Ackee
101101
- [Soapberry](https://wordpress.org/plugins/soapberry/) - WordPress plugin for Ackee
102102
- [use-ackee](https://github.com/electerious/use-ackee) - Use Ackee in React
103+
- [nuxt-ackee](https://github.com/bdrtsky/nuxt-ackee) - Nuxt.js module for Ackee

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ackee",
33
"private": true,
4-
"version": "1.6.0",
4+
"version": "1.6.1",
55
"authors": [
66
"Tobias Reich <[email protected]>"
77
],

Diff for: src/server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const attachCorsHeaders = (fn) => async (req, res) => {
5353

5454
if (process.env.ACKEE_ALLOW_ORIGIN) {
5555
const origins = process.env.ACKEE_ALLOW_ORIGIN.split(',')
56-
return origins.find((origin) => origin.includes(req.headers.host))
56+
return origins.find((origin) => origin.includes(req.headers.origin) || origin.includes(req.headers.host))
5757
}
5858

5959
})()

0 commit comments

Comments
 (0)