This commit is contained in:
yziiy
2025-12-12 17:34:55 +08:00
parent 1cf23d99fe
commit bf4cd1a17c
2 changed files with 2 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
export const URL = "https://test.vespa.qxyushen.top";
export const URL = "https://yushengapi.qxyushen.top";
// https://vespa.qxyushen.top 正式
// http://1.13.101.98
// https://test.vespa.qxyushen.top

View File

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