Skip to content

Commit

Permalink
fix: remove localhost from trusted origins
Browse files Browse the repository at this point in the history
  • Loading branch information
mantariksh committed Oct 12, 2024
1 parent 762b9ba commit 31c7eb5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/src/features/public-form/utils/iframeMessaging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ const TRUSTED_TARGET_ORIGINS = [
'https://pay.gov.sg',
'https://exp.pay.gov.sg',
'https://staging.pay.gov.sg',
].concat(
process.env.NODE_ENV === 'development' ? ['http://localhost:3000'] : [],
)
]

export const postIFrameMessage = (message: PublicFormIFrameMessage): void => {
// De-risk by wrapping in try-catch even though this is synchronous. This should
Expand Down

0 comments on commit 31c7eb5

Please sign in to comment.