diff --git a/packages/nuxt3/src/cli.ts b/packages/nuxt3/src/cli.ts index 6286981ee0..adf03b70e9 100755 --- a/packages/nuxt3/src/cli.ts +++ b/packages/nuxt3/src/cli.ts @@ -5,6 +5,7 @@ async function _main () { const args = process.argv.splice(2) const cmd = args[0] if (!['dev', 'build'].includes(cmd)) { + // eslint-disable-next-line no-console console.error('Usage nuxt dev|build [rootDir]') process.exit(1) } diff --git a/packages/nuxt3/src/webpack/configs/client.ts b/packages/nuxt3/src/webpack/configs/client.ts index 2a004e01c2..8cd110b5d3 100644 --- a/packages/nuxt3/src/webpack/configs/client.ts +++ b/packages/nuxt3/src/webpack/configs/client.ts @@ -98,13 +98,6 @@ function clientPlugins (ctx: WebpackConfigContext) { ...options.build.analyze as any })) } - - // CORS - if (ctx.options.render.crossorigin) { - ctx.config.plugins.push(new CorsPlugin({ - crossorigin: ctx.options.render.crossorigin - })) - } } function getCspScriptPolicy (ctx: WebpackConfigContext) {