更新my的接口地址
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
export const URL = "https://my.qixing2.top";
|
export const URL = "https://my.meiyinmanbo.com";
|
||||||
// 声网appId 在这里换
|
// 声网appId 在这里换
|
||||||
export const appIdBySw = 'b48912a0b10d48f88be7ac5ee8675a6b'
|
export const appIdBySw = 'b48912a0b10d48f88be7ac5ee8675a6b'
|
||||||
@@ -36,7 +36,7 @@ export default ({ mode }: ConfigEnv): UserConfigExport => {
|
|||||||
if (req.method === 'OPTIONS') {
|
if (req.method === 'OPTIONS') {
|
||||||
proxyReq.method = 'OPTIONS';
|
proxyReq.method = 'OPTIONS';
|
||||||
// 设置CORS头
|
// 设置CORS头
|
||||||
res.setHeader('Access-Control-Allow-Origin', 'https://119.45.34.13');
|
res.setHeader('Access-Control-Allow-Origin', 'https://my.meiyinmanbo.com');
|
||||||
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