diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 03fbeee..ebd5c6f 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -79,7 +79,7 @@ jobs: --min-instances 1 --concurrency 80 --allow-unauthenticated - --ingress + --ingress=all timeout: 600s @@ -100,6 +100,6 @@ jobs: --min-instances 1 --concurrency 100 --allow-unauthenticated - --ingress + --ingress=all timeout: 600s diff --git a/apps/client/src/app/shared/api-client.service.ts b/apps/client/src/app/shared/api-client.service.ts index 12e0832..ad0531b 100644 --- a/apps/client/src/app/shared/api-client.service.ts +++ b/apps/client/src/app/shared/api-client.service.ts @@ -16,7 +16,8 @@ export class ApiClientService { private getHeaders(): HttpHeaders { const token = this.tokenService.getToken(); - return new HttpHeaders().set('Authorization', `Bearer ${token}`); + + return new HttpHeaders().set('Authorization', `Bearer ${token}`).set('Content-Type', 'application/json'); } // Auth endpoints diff --git a/apps/server/src/main.ts b/apps/server/src/main.ts index 0a058d8..924baf1 100644 --- a/apps/server/src/main.ts +++ b/apps/server/src/main.ts @@ -5,7 +5,7 @@ import { AppModule } from './app.module'; import mongoose from 'mongoose'; async function bootstrap() { - const app = await NestFactory.create(AppModule,{cors:true}); + const app = await NestFactory.create(AppModule); app.useGlobalPipes(new ValidationPipe({ whitelist: true, forbidNonWhitelisted: true,