stash
This commit is contained in:
parent
ce63ce368f
commit
1b69cf5ef6
1 changed files with 18 additions and 0 deletions
|
@ -16,6 +16,7 @@ export default defineConfig({
|
|||
cors: true,
|
||||
headers: {
|
||||
//allow all origins
|
||||
//'Access-Control-Allow-Origin': 'http://10.23.42.128:8000, http://10.23.42.168:8000',
|
||||
'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, OPTIONS',
|
||||
'Access-Control-Allow-Headers': 'Origin, Content-Type, X-Auth-Token, Authorization, Accept, charset, boundary, Content-Length',
|
||||
'Access-Control-Allow-Credentials': 'true',
|
||||
|
@ -27,6 +28,23 @@ export default defineConfig({
|
|||
+ ' connect-src * data:', // TODO: change * to https://* for production (probably in nginx config not here)
|
||||
},
|
||||
},
|
||||
proxy: {
|
||||
'^/api/': {
|
||||
target: "http://127.0.0.1:8000/",
|
||||
},
|
||||
'^/auth/': {
|
||||
target: "http://127.0.0.1:8000/",
|
||||
},
|
||||
'^/admin/': {
|
||||
target: "http://127.0.0.1:8000/",
|
||||
},
|
||||
'^/docs/': {
|
||||
target: "http://127.0.0.1:8000/",
|
||||
},
|
||||
'^/static/': {
|
||||
target: "http://127.0.0.1:8000/",
|
||||
}
|
||||
},
|
||||
test: {
|
||||
include: ['src/tests/**/*.js'],
|
||||
globals: true,
|
||||
|
|
Loading…
Reference in a new issue