FIX: default value to header origin

This commit is contained in:
marcos-silva-rodrigues
2025-05-15 11:00:07 -03:00
parent f153f41357
commit 81d8cd8a07
2 changed files with 1 additions and 9 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ export class AuthController {
async signIn(
@Body() { username, password, totp }: AuthSignInReq,
@Language() language: LanguageEnum,
@Headers('origin') origin: string,
@Headers('origin') origin = '',
): Promise<AuthSignInRes> {
this.logger.info('/auth - SignIn');
const frontHost = origin.replace(/^https?:\/\//, '');