remove reject of the headets

This commit is contained in:
Eudes Inácio
2023-10-25 09:08:49 +01:00
parent f92cdc5816
commit 97d86455cf
17 changed files with 108 additions and 71 deletions
+2 -2
View File
@@ -40,7 +40,7 @@ export class ChatService {
}
getDocumentDetails(url: string) {
let headersc = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });;
let headersc = new HttpHeaders();
headersc = headersc.set('X-User-Id', SessionStore.user.ChatData.data.userId);
headersc = headersc.set('X-Auth-Token', SessionStore.user.ChatData.data.authToken);
headersc = headersc.set('Sec-Fetch-Dest', 'attachment');
@@ -350,7 +350,7 @@ export class ChatService {
try {
if (this.p.userPermission(this.p.permissionList.Chat.access) && SessionStore.user.ChatData) {
this.headers = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });;
this.headers = new HttpHeaders();;
if (this.p.userPermission(this.p.permissionList.Chat.access)) {
//