Skip to content

Commit

Permalink
fix: fix node header refer (#4056)
Browse files Browse the repository at this point in the history
  • Loading branch information
laojun authored Aug 29, 2024
1 parent a4de75a commit 2f09a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduler/src/filters/not-found.filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class NotFoundExceptionFilter implements ExceptionFilter {
);
if (userRes?.status === 401) {
const loginRes = await callApi('/api/openapi/login', {
headers: { referer: `${request.protocol}://${request.hostname}${request.url}` },
headers: { referer: `${request.protocol}://${request.headers.host || request.hostname}${request.url}` },
});
if (loginRes?.data?.url) {
const { query } = qs.parseUrl(loginRes.data.url);
Expand Down

0 comments on commit 2f09a98

Please sign in to comment.