Skip to content

Commit adbd326

Browse files
jhfclaude
andcommitted
fix: Allow local.statbus.org as dev origin to suppress cross-origin warning
Next.js 16 warns on cross-origin requests from local.statbus.org to /_next/* resources. Add allowedDevOrigins to silence this warning. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 94de58c commit adbd326

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/next.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ const nextConfig = {
4343
reactStrictMode: true,
4444
// output: 'standalone' is primarily for production builds.
4545
// Set it conditionally to avoid potential interference with dev server features like proxying.
46+
...(isDevelopment && {
47+
allowedDevOrigins: ['local.statbus.org'],
48+
}),
4649
};
4750

4851
if (!isDevelopment) {

0 commit comments

Comments
 (0)