Unverified Commit 13c7871d authored by Athurg Gooth's avatar Athurg Gooth Committed by GitHub

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

fix vite proxy setting to keep the request headers
parent 137c8f8a
...@@ -17,19 +17,19 @@ export default defineConfig({ ...@@ -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,
}, },
}, },
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment