This commit is contained in:
黄心宇 2024-01-12 10:21:13 +08:00
parent 771a2ba19a
commit a6e3aea2c3
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ const app = express();
app.use('/build', express.static('build'));
const targetServer = 'https://www.gitlink.org.cn'; // Java 服务器的地址
const targetServer = 'http://localhost:4000'; // Java 服务器的地址
const options = {
target: targetServer,
changeOrigin: true, // 允许在请求头中更改主机