Browse Source

fix: bug fix for proxy error caused by localhost name error

pull/386/head
winkidney 1 month ago
parent
commit
5cb77170a2
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      pinry-spa/vue.config.js

+ 3
- 3
pinry-spa/vue.config.js View File

@@ -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,
},
},


Loading…
Cancel
Save