Skip to content

Commit

Permalink
Merge pull request #172 from SilentCicero/master
Browse files Browse the repository at this point in the history
Update middleware.js
  • Loading branch information
mattdesl authored Sep 15, 2016
2 parents 2af6e9a + 89092c5 commit 457cced
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ function budoMiddleware (entryMiddleware, opts) {
})
handler.use(function (req, res, next) {
if (cors) {
res.setHeader('Access-Control-Allow-Headers', 'Cache-Control, Pragma, Origin, Authorization, Content-Type, X-Requested-With')
res.setHeader('Access-Control-Allow-Methods', 'GET, PUT, POST')
res.setHeader('Access-Control-Allow-Origin', '*')
}
logHandler(req, res, next)
Expand Down

0 comments on commit 457cced

Please sign in to comment.