This commit is contained in:
黄心宇 2024-04-23 10:13:43 +08:00
parent 7ebe1392aa
commit 4ea5f61ddf
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ const proxy = createProxyMiddleware(options('http://localhost:8081'));
// });
// 设置代理
app.use(['/api', '/images', '/system', '/favicon', '/robots.txt', '/sitemap*.xml', '/sitemap*.txt', '/favicon.ico', '/admins', '/assets', '/attachments'], (req, res) => {
app.use(['/api', '/images', '/system', '/favicon', '/robots.txt', '/sitemap*.xml', '/sitemap*.txt', '/favicon.ico', '/admins', '/assets', '/attachments', '/oauth'], (req, res) => {
proxy(req, res);
});