Skip to content

Commit

Permalink
Merge pull request IdentityModel#1223 from paulmowat/fix/postMessageU…
Browse files Browse the repository at this point in the history
…rlCheck

IFrameWindow.js _message url checks
  • Loading branch information
brockallen authored Jan 28, 2021
2 parents f0c08c5 + c8f45fb commit 202a057
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 17 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.

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 &&
(typeof e.data === 'string' && (e.data.startsWith('http://') || e.data.startsWith('https://')))
) {
let url = e.data;
if (url) {
Expand Down

0 comments on commit 202a057

Please sign in to comment.