From df237435c862d9b59cc47da0f2a91c274ca3858c Mon Sep 17 00:00:00 2001 From: FazCodeFR <30906528+FazCodeFR@users.noreply.github.com> Date: Fri, 2 Feb 2024 16:25:13 +0100 Subject: [PATCH] Fix 2 CORS URL --- src/app/services/app.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/services/app.service.ts b/src/app/services/app.service.ts index 264ec8b..be7c194 100644 --- a/src/app/services/app.service.ts +++ b/src/app/services/app.service.ts @@ -12,7 +12,7 @@ export class AppService { } // api = 'http://localhost:3000/v1'; // api = 'https://potits-chats-back.vercel.app/v1'; - api = '/v1/'; + api = '/v1'; constructor(private http: HttpClient) {} @@ -33,6 +33,7 @@ export class AppService { } getAllCats(): Observable { + console.log('🚀 ~ AppService ~ getAllCats ~ this.api:', this.api); return this.http .get(this.api + '/chats', { headers: new HttpHeaders({ 'Access-Control-Allow-Origin': '*' }),