更新
This commit is contained in:
@@ -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://my.meiyinmanbo.com');
|
res.setHeader('Access-Control-Allow-Origin', 'https://119.45.34.13');
|
||||||
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