fix(sdk,client): use origin as postmessage target
arcad/edge/pipeline/head This commit looks good
Details
arcad/edge/pipeline/head This commit looks good
Details
This commit is contained in:
parent
310dac296f
commit
de330c0042
|
@ -3990,7 +3990,7 @@ var Edge = (() => {
|
|||
return;
|
||||
}
|
||||
const token = this._getAuthCookieToken();
|
||||
evt.source.postMessage({ type: EdgeAuthTokenResponse, data: { token } });
|
||||
evt.source.postMessage({ type: EdgeAuthTokenResponse, data: { token } }, evt.origin);
|
||||
}
|
||||
_onConnectionMessage(evt) {
|
||||
const rawMessage = JSON.parse(evt.data);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -172,7 +172,8 @@ export class Client extends EventTarget {
|
|||
}
|
||||
|
||||
const token = this._getAuthCookieToken();
|
||||
evt.source.postMessage({ type: EdgeAuthTokenResponse, data: { token }});
|
||||
// @ts-ignore
|
||||
evt.source.postMessage({ type: EdgeAuthTokenResponse, data: { token }}, evt.origin);
|
||||
}
|
||||
|
||||
_onConnectionMessage(evt) {
|
||||
|
|
Loading…
Reference in New Issue