Skip to content

Commit

Permalink
Do not send servers auth credentials to client
Browse files Browse the repository at this point in the history
  • Loading branch information
ayselafsar committed May 3, 2018
1 parent b6092ca commit 2d44f8f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Packages/ohif-servers/server/publications.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import { Servers, CurrentServer } from 'meteor/ohif:servers/both/collections';
// When publishing Servers Collection, do not publish the requestOptions.headers
// field in case any authentication information is being passed
Meteor.publish('servers', () => Servers.find({}, {
fields: { 'requestOptions.headers': 0 }
fields: {
'requestOptions.headers': 0,
'requestOptions.auth': 0,
}
}));

Meteor.publish('currentServer', () => CurrentServer.find());

0 comments on commit 2d44f8f

Please sign in to comment.