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 e572779 commit d7b0541Copy full SHA for d7b0541
packages/wrangler/src/pipelines/cli/setup.ts
@@ -132,7 +132,7 @@ async function setupStreamConfiguration(
132
});
133
}
134
135
- let corsOrigins = ["*"];
+ let corsOrigins: string[] | undefined;
136
if (httpEnabled) {
137
const customCors = await confirm("Configure custom CORS origins?", {
138
defaultValue: false,
@@ -153,7 +153,7 @@ async function setupStreamConfiguration(
153
http: {
154
enabled: httpEnabled,
155
authentication: httpAuth,
156
- ...(httpEnabled && { cors: { origins: corsOrigins } }),
+ ...(httpEnabled && corsOrigins && { cors: { origins: corsOrigins } }),
157
},
158
worker_binding: { enabled: true },
159
...(schema && { schema: { fields: schema } }),
0 commit comments