Skip to content

Commit

Permalink
fix: load the iframe in the same port as the parent domain
Browse files Browse the repository at this point in the history
  • Loading branch information
2color committed Mar 1, 2024
1 parent 4fb8357 commit af68be4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redirectPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { error } from './lib/logger.ts'
const ConfigIframe = (): JSX.Element => {
const { parentDomain } = getSubdomainParts(window.location.href)

const iframeSrc = `${window.location.protocol}//${parentDomain}/config?origin=${encodeURIComponent(window.location.origin)}`
const iframeSrc = `${window.location.protocol}//${parentDomain}:${window.location.port}/config?origin=${encodeURIComponent(window.location.origin)}`

return (
<iframe id="redirect-config-iframe" src={iframeSrc} style={{ width: '100vw', height: '100vh', border: 'none' }} />
Expand Down

0 comments on commit af68be4

Please sign in to comment.