Skip to content

Commit

Permalink
Fix 2 CORS URL
Browse files Browse the repository at this point in the history
  • Loading branch information
FazCodeFR committed Feb 2, 2024
1 parent e2bbaf9 commit df23743
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/services/app.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}

Expand All @@ -33,6 +33,7 @@ export class AppService {
}

getAllCats(): Observable<Chat[]> {
console.log('🚀 ~ AppService ~ getAllCats ~ this.api:', this.api);
return this.http
.get(this.api + '/chats', {
headers: new HttpHeaders({ 'Access-Control-Allow-Origin': '*' }),
Expand Down

0 comments on commit df23743

Please sign in to comment.