Skip to content

Commit

Permalink
Propagate CORS-enabling to Restivus - fixes #7915
Browse files Browse the repository at this point in the history
(cherry picked from commit cf7d37f)
  • Loading branch information
mrsimpson committed Oct 27, 2017
1 parent ed35507 commit 8180f8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rocketchat-api/server/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,13 @@ RocketChat.API.v1 = new API({
version: 'v1',
useDefaultAuth: true,
prettyJson: true,
enableCors: false,
enableCors: RocketChat.settings.get('API_Enable_CORS'),
auth: getUserAuth()
});

RocketChat.API.default = new API({
useDefaultAuth: true,
prettyJson: true,
enableCors: false,
enableCors: RocketChat.settings.get('API_Enable_CORS'),
auth: getUserAuth()
});

0 comments on commit 8180f8b

Please sign in to comment.