Skip to content

Commit

Permalink
Check hostname on basic auth
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdh committed Jul 21, 2016
1 parent e259611 commit 8c74aa9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/components/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,9 @@ class Main extends ImmutableComponent {
})

ipc.on(messages.LOGIN_REQUIRED, (e, detail) => {
const frames = self.props.windowState.get('frames').filter((frame) => frame.get('location') === detail.url)
const frames = self.props.windowState.get('frames')
.filter((frame) => frame.get('location') === detail.url ||
urlParse(frame.get('location')).hostname === urlParse(detail.url).hostname)
frames.forEach((frame) =>
windowActions.setLoginRequiredDetail(frame, detail))
})
Expand Down

0 comments on commit 8c74aa9

Please sign in to comment.