Skip to content

Commit e7d1a72

Browse files
committed
fix: configure allowedDevOrigins to suppress cross-origin warnings
Add allowedDevOrigins configuration to next.config.mjs to explicitly allow localhost and 127.0.0.1 cross-origin requests during development. This resolves the Next.js warning about cross-origin requests to /_next/* resources and ensures forward compatibility with future Next.js versions.
1 parent df051d6 commit e7d1a72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

next.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const withNextIntl = createNextIntlPlugin("./i18n/request.ts");
55
/** @type {import('next').NextConfig} */
66
const nextConfig = {
77
typedRoutes: true,
8+
allowedDevOrigins: ["localhost", "127.0.0.1"],
89
images: {
910
remotePatterns: [
1011
{

0 commit comments

Comments
 (0)