更新秘地的api
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
export const URL = "https://vespa.qxyushen.top";
|
export const URL = "https://md.xscmmidi.site";
|
||||||
// https://vespa.qxyushen.top 正式
|
// https://md.xscmmidi.site 正式
|
||||||
|
// https://tmd.xscmmidi.site 测试
|
||||||
// 声网appId 在这里换
|
// 声网appId 在这里换
|
||||||
export const appIdBySw = 'a3f0f0c78307434fa1c697c3429fbdcf';
|
export const appIdBySw = 'a3f0f0c78307434fa1c697c3429fbdcf';
|
||||||
@@ -35,8 +35,9 @@ export default ({ mode }: ConfigEnv): UserConfigExport => {
|
|||||||
onProxyReq: (proxyReq, req, res) => {
|
onProxyReq: (proxyReq, req, res) => {
|
||||||
if (req.method === 'OPTIONS') {
|
if (req.method === 'OPTIONS') {
|
||||||
proxyReq.method = 'OPTIONS';
|
proxyReq.method = 'OPTIONS';
|
||||||
// 设置CORS头 https://admin.qxyushen.top
|
// 设置CORS头 https://admin.xscmmidi.site
|
||||||
res.setHeader('Access-Control-Allow-Origin', 'https://admin.qxyushen.top');
|
// 测试 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-Methods', 'GET, POST, PUT, DELETE, OPTIONS');
|
||||||
res.setHeader('Access-Control-Allow-Headers', 'Content-Type, Authorization');
|
res.setHeader('Access-Control-Allow-Headers', 'Content-Type, Authorization');
|
||||||
res.end();
|
res.end();
|
||||||
|
|||||||
Reference in New Issue
Block a user