Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
fix: added CORS middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrantsberg committed May 11, 2020
1 parent 5a45bc9 commit a8ed0b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class Services {
this._initialized = true

this._app.use(helmet(security))
this._app.use(require('cors')())
this._app.use(bodyParserMiddleware.json(bodyParser.json))
this._app.use(bodyParserMiddleware.urlencoded(bodyParser.urlencoded))

Expand Down

0 comments on commit a8ed0b3

Please sign in to comment.