diff --git a/frontend/src/components/layout/expected-origin-boundary.tsx b/frontend/src/components/layout/expected-origin-boundary.tsx index 994cf4a66..4424f8097 100644 --- a/frontend/src/components/layout/expected-origin-boundary.tsx +++ b/frontend/src/components/layout/expected-origin-boundary.tsx @@ -38,7 +38,9 @@ export const ExpectedOriginBoundary: React.FC = ({ const currentOrigin = buildOriginFromHeaders() if (new URL(expectedOrigin).origin !== currentOrigin) { - return {`You can't open this page using this URL. For this endpoint "${expectedOrigin}" is expected.`} + return ( + {`You can't open this page using this URL. For this endpoint "${expectedOrigin}" is expected but got "${currentOrigin}".`} + ) } return children }