Skip to content

Commit

Permalink
Branching off to 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
cemremengu committed Dec 20, 2018
1 parent c2a6c7f commit ff950d3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .gitattributes
@@ -0,0 +1,5 @@
# Set the default behavior, in case people don't have core.autocrlf set
* text=auto

# Require Unix line endings
* text eol=lf
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -4,6 +4,7 @@ node_js:
- "6"
- "8"
- "10"
- "11"

notifications:
email:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -4,6 +4,8 @@

`fastify-cors` enables the use of [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing) in a Fastify application.

Supports Fastify versions `^1.x`

## Install
```
npm i fastify-cors
Expand Down
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -166,6 +166,6 @@ function vary (reply, field) {
}

module.exports = fp(fastifyCors, {
fastify: '>=1.0.0',
fastify: '^1.0.0',
name: 'fastify-cors'
})

0 comments on commit ff950d3

Please sign in to comment.