chore: update vite dev server proxy setting (#2222)

fix vite proxy setting to keep the request headers
This commit is contained in:
Athurg Gooth 2023-09-15 21:49:34 +08:00 committed by GitHub
parent 137c8f8a07
commit 13c7871d20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,19 +17,19 @@ export default defineConfig({
proxy: { proxy: {
"^/api": { "^/api": {
target: devProxyServer, target: devProxyServer,
changeOrigin: true, xfwd: true,
}, },
"^/o/": { "^/o/": {
target: devProxyServer, target: devProxyServer,
changeOrigin: true, xfwd: true,
}, },
"^/u/.+/rss.xml": { "^/u/.+/rss.xml": {
target: devProxyServer, target: devProxyServer,
changeOrigin: true, xfwd: true,
}, },
"/explore/rss.xml": { "/explore/rss.xml": {
target: devProxyServer, target: devProxyServer,
changeOrigin: true, xfwd: true,
}, },
}, },
}, },