8000 Ignore non-string messages in silent SSO iframe listener by SAY-5 · Pull Request #327 · keycloak/keycloak-js · GitHub
[go: up one dir, main page]

Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/keycloak.js
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ export default class Keycloak {
* @param {MessageEvent} event
*/
const messageCallback = async (event) => {
if (event.origin !== window.location.origin || iframe.contentWindow !== event.source) {
if (event.origin !== window.location.origin || iframe.contentWindow !== event.source || typeof event.data !== 'string') {
return
}

Expand Down
0