From fb3c7f77b8925a35788e957bf6c8223bc48a24db Mon Sep 17 00:00:00 2001 From: Hu Jing <147302873+GmavionR@users.noreply.github.com> Date: Sat, 11 May 2024 12:22:51 +0800 Subject: [PATCH] resolving the "Invalid Host header" Error Deployment at https://codesandbox.io/ encountered an Invalid Host header error --- vue.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vue.config.js b/vue.config.js index 7d55dd12..4cf99ffe 100644 --- a/vue.config.js +++ b/vue.config.js @@ -3,5 +3,8 @@ module.exports = defineConfig({ transpileDependencies: true, publicPath: process.env.NODE_ENV === 'production' ? '/ugly-avatar/' - : '/' + : '/', + devServer: { + allowedHosts: "all", + }, })