This commit is contained in:
yziiy
2026-01-16 10:08:18 +08:00
parent 4e1d7a60ae
commit 0ff9bdad84
3 changed files with 84 additions and 9 deletions

View File

@@ -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",