We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d221f8 commit e1196d2Copy full SHA for e1196d2
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