fix(sdk,client): use origin as postmessage target
All checks were successful
arcad/edge/pipeline/head This commit looks good
All checks were successful
arcad/edge/pipeline/head This commit looks good
This commit is contained in:
parent
310dac296f
commit
de330c0042
2
pkg/sdk/client/dist/client.js
vendored
2
pkg/sdk/client/dist/client.js
vendored
@ -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);
|
||||
|
4
pkg/sdk/client/dist/client.js.map
vendored
4
pkg/sdk/client/dist/client.js.map
vendored
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
Block a user