Skip to content

Commit

Permalink
Update cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JuribaDev committed Aug 31, 2024
1 parent 05cefac commit f537b9e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
--min-instances 1
--concurrency 80
--allow-unauthenticated
--ingress
--ingress=all
timeout: 600s

Expand All @@ -100,6 +100,6 @@ jobs:
--min-instances 1
--concurrency 100
--allow-unauthenticated
--ingress
--ingress=all
timeout: 600s
3 changes: 2 additions & 1 deletion apps/client/src/app/shared/api-client.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion apps/server/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f537b9e

Please sign in to comment.