Replaced * origin by this.origin
This commit is contained in:
parent
38c02bcb1e
commit
597cd30f71
@ -576,10 +576,8 @@ export default class MessageBus {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const targetOrigin = "*" // this.origin pour la production ;
|
console.log('[MessageBus] sendMessage:', message, 'to', this.origin);
|
||||||
|
iframe.contentWindow?.postMessage(message, this.origin);
|
||||||
console.log('[MessageBus] sendMessage:', message, 'to', targetOrigin);
|
|
||||||
iframe.contentWindow?.postMessage(message, targetOrigin);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private initMessageListener(correlationId: string): void {
|
private initMessageListener(correlationId: string): void {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user