更新配置
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
export const URL = "https://vespa.qxyushen.top";
|
export const URL = "https://test.vespa.qxyushen.top";
|
||||||
// https://vespa.qxyushen.top 正式
|
// https://vespa.qxyushen.top 正式
|
||||||
// 声网appId 在这里换
|
// 声网appId 在这里换
|
||||||
export const appIdBySw = 'a3f0f0c78307434fa1c697c3429fbdcf';
|
export const appIdBySw = '02f7339ec98947deaeab173599891932';
|
||||||
@@ -36,7 +36,8 @@ export default ({ mode }: ConfigEnv): UserConfigExport => {
|
|||||||
if (req.method === 'OPTIONS') {
|
if (req.method === 'OPTIONS') {
|
||||||
proxyReq.method = 'OPTIONS';
|
proxyReq.method = 'OPTIONS';
|
||||||
// 设置CORS头 https://admin.qxyushen.top
|
// 设置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-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