Create and use proxy server middleware

Because
- Get over of CORS and mixed content browser errors
This commit is contained in:
Hossein Nedaee
2019-10-19 23:27:16 +03:30
parent 18178741c8
commit 1c99ffa3cc
4 changed files with 97 additions and 21 deletions

View File

@@ -27,6 +27,9 @@ export default {
server: {
host: '0.0.0.0', // default: localhost
},
serverMiddleware: [
'~/proxy/index.js'
],
head: {
title: `${meta.name} \u2022 ${meta.shortDescription}`,
meta: [