Skip to content

Commit b786566

Browse files
committed
Add allowedDomains to astro-5 test app config
Astro 5.17.2 changed host header validation to fall back to "localhost" (without port) when no `allowedDomains` is configured, breaking internal fetch requests in SSR pages. This caused the nested SSR route E2E tests to time out waiting for the API endpoint transaction.
1 parent b212fcf commit b786566

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dev-packages/e2e-tests/test-applications/astro-5/astro.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ export default defineConfig({
1515
}),
1616
],
1717
output: 'server',
18+
security: {
19+
allowedDomains: [{ hostname: 'localhost' }],
20+
},
1821
adapter: node({
1922
mode: 'standalone',
2023
}),

0 commit comments

Comments
 (0)