Skip to content

Commit

Permalink
fix: adding url check to iframe _message
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmowat committed Oct 13, 2020
1 parent 2e5e28b commit e8bd1b2
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 18 deletions.
4 changes: 2 additions & 2 deletions dist/oidc-client.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/oidc-client.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/oidc-client.rsa256.slim.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/oidc-client.rsa256.slim.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/oidc-client.slim.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/oidc-client.slim.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/oidc-client.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/oidc-client.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/oidc-client.rsa256.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/oidc-client.rsa256.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/IFrameWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ export class IFrameWindow {

if (this._timer &&
e.origin === this._origin &&
e.source === this._frame.contentWindow
e.source === this._frame.contentWindow &&
(e.data.startsWith('http://') || e.data.startsWith('https://'))
) {
let url = e.data;
if (url) {
Expand Down

0 comments on commit e8bd1b2

Please sign in to comment.