Skip to content

Commit

Permalink
add options cors support
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Jul 20, 2016
1 parent f6ccc9e commit 4b52a32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export default function slackin ({
})

if (useCors) {
app.options('*', cors())
app.use(cors())
}

Expand Down

0 comments on commit 4b52a32

Please sign in to comment.