From 93be80d51d827da54c31cbe06d823222d08bfeba Mon Sep 17 00:00:00 2001 From: Georg Spar Date: Mon, 5 Jun 2023 19:44:17 +0200 Subject: [PATCH] proxy / CORS --- nuxt.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nuxt.config.js b/nuxt.config.js index 0b5e273..a97c560 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -50,11 +50,12 @@ export default { axios: { // Workaround to avoid enforcing hard-coded localhost:3000: https://github.com/nuxt-community/axios-module/issues/308 baseURL: '/', + browserBaseURL: '/', proxy: true }, proxy: { - '/api/v1/': { target: 'http://localhost:8081/', changeOrigin: true }, + '/api/': { target: 'http://127.0.0.1:8081/', changeOrigin: true }, }, // Build Configuration: https://go.nuxtjs.dev/config-build