更新
This commit is contained in:
@@ -35,11 +35,11 @@ export default ({ mode }: ConfigEnv): UserConfigExport => {
|
||||
onProxyReq: (proxyReq, req, res) => {
|
||||
if (req.method === "OPTIONS") {
|
||||
proxyReq.method = "OPTIONS";
|
||||
res.setHeader(
|
||||
"Access-Control-Allow-Origin",
|
||||
"http://adminvs.qxhs.xyz"
|
||||
);
|
||||
// res.setHeader('Access-Control-Allow-Origin', 'http://yushenggliht.qxyushen.top');
|
||||
// res.setHeader(
|
||||
// "Access-Control-Allow-Origin",
|
||||
// "http://adminvs.qxhs.xyz"
|
||||
// );
|
||||
res.setHeader('Access-Control-Allow-Origin', 'http://yushenggliht.qxyushen.top');
|
||||
// res.setHeader('Access-Control-Allow-Origin', 'https://test.vespa.qxyushen.top');
|
||||
res.setHeader(
|
||||
"Access-Control-Allow-Methods",
|
||||
|
||||
Reference in New Issue
Block a user