更新配置

This commit is contained in:
yziiy
2025-10-24 15:49:51 +08:00
parent f5c901a817
commit 1d5511c205
2 changed files with 4 additions and 3 deletions

View File

@@ -36,7 +36,8 @@ export default ({ mode }: ConfigEnv): UserConfigExport => {
if (req.method === 'OPTIONS') {
proxyReq.method = 'OPTIONS';
// 设置CORS头 https://admin.qxyushen.top
res.setHeader('Access-Control-Allow-Origin', 'https://admin.qxyushen.top');
// https://test.vespa.qxyushen.top
res.setHeader('Access-Control-Allow-Origin', 'https://test.vespa.qxyushen.top');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS');
res.setHeader('Access-Control-Allow-Headers', 'Content-Type, Authorization');
res.end();