更新秘地的api

This commit is contained in:
yziiy
2025-10-23 11:11:28 +08:00
parent 741da92c20
commit 12fd1dd5a7
2 changed files with 6 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
export const URL = "https://vespa.qxyushen.top";
// https://vespa.qxyushen.top 正式
export const URL = "https://md.xscmmidi.site";
// https://md.xscmmidi.site 正式
// https://tmd.xscmmidi.site 测试
// 声网appId 在这里换
export const appIdBySw = 'a3f0f0c78307434fa1c697c3429fbdcf';

View File

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