Skip to content

Commit

Permalink
feat: support cors for api (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyuheng authored and zivyangll committed Apr 25, 2019
1 parent 756df38 commit 1560cee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion app/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ module.exports = app => {
const contextMiddleWare = compose([
middleware.socketEmit(),
middleware.schemaValidation(),
middleware.contextCors(),
middleware.contextDelay(),
middleware.contextStatus(),
middleware.contextResponseHeaders(),
Expand Down
1 change: 1 addition & 0 deletions config/config.default.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = appInfo => {
config.keys = appInfo.name;

config.middleware = [
'contextCors',
'exportData',
'errorHandler',
];
Expand Down

0 comments on commit 1560cee

Please sign in to comment.