Skip to content

Commit

Permalink
fix: add more trusted origins (#17883)
Browse files Browse the repository at this point in the history
  • Loading branch information
nijil-deriv authored Dec 24, 2024
1 parent 27ed50f commit 7758ad2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/cashier/src/stores/iframe-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ export default class IframeStore {

this.removeOnIframeLoaded();

const trusted_origins = ['https://cashier.deriv.com', 'https://doughflow-test.4x.my'];
const trusted_origins = [
'https://cashier.deriv.com',
'https://cashier.deriv.be',
'https://cashier.deriv.me',
'https://doughflow-test.4x.my',
];

this.onIframeLoaded = (e: MessageEvent) => {
if (trusted_origins.includes(e.origin)) {
Expand Down

0 comments on commit 7758ad2

Please sign in to comment.