From 5cb77170a28ac874f6910aa69e69eab1ad32e60d Mon Sep 17 00:00:00 2001 From: winkidney Date: Mon, 30 Sep 2024 20:11:05 +0800 Subject: [PATCH] fix: bug fix for proxy error caused by localhost name error --- pinry-spa/vue.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pinry-spa/vue.config.js b/pinry-spa/vue.config.js index 7185f31..7a92538 100644 --- a/pinry-spa/vue.config.js +++ b/pinry-spa/vue.config.js @@ -2,16 +2,16 @@ module.exports = { devServer: { proxy: { '/api': { - target: 'http://localhost:8000/', + target: 'http://127.0.0.1:8000/', changeOrigin: true, ws: true, }, '/media': { - target: 'http://localhost:8000/', + target: 'http://127.0.0.1:8000/', changeOrigin: true, }, '/static/js/': { - target: 'http://localhost:8000/', + target: 'http://127.0.0.1:8000/', changeOrigin: true, }, },