We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adf5462 commit 2fcae1dCopy full SHA for 2fcae1d
packages/next/src/server/lib/router-server.ts
@@ -172,7 +172,11 @@ export async function initialize(opts: {
172
;(globalThis as any)[Symbol.for('@next/middleware-subrequest-id')] =
173
middlewareSubrequestId
174
175
- const allowedOrigins = ['localhost', ...(config.allowedDevOrigins || [])]
+ const allowedOrigins = [
176
+ '*.localhost',
177
+ 'localhost',
178
+ ...(config.allowedDevOrigins || []),
179
+ ]
180
if (opts.hostname) {
181
allowedOrigins.push(opts.hostname)
182
}
0 commit comments