Skip to content

Commit

Permalink
fix: AE proxy request path
Browse files Browse the repository at this point in the history
  • Loading branch information
GuanyuTao committed Aug 21, 2024
1 parent 9a8ec08 commit 32f16f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/itmat-interface/src/server/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,11 @@ export class Router {
target: _this.config.aeEndpoint,
ws: true,
xfwd: true,
// logLevel: 'debug',
autoRewrite: true,
changeOrigin: true,
on: {
proxyReq: function (preq, req: Request, res: Response) {
preq.path = req.baseUrl + req.path;
if (!req.user)
return res.status(403).redirect('/');
res.cookie('ae_proxy', req.headers['host']);
Expand Down

0 comments on commit 32f16f8

Please sign in to comment.