Skip to content

Commit

Permalink
chore(test): test
Browse files Browse the repository at this point in the history
  • Loading branch information
anteqkois committed May 8, 2024
1 parent 8167c96 commit 548fa52
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions apps/api-gateway/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,18 @@ async function bootstrap() {
)

const configService = app.get(ConfigService)
const frontendUrl = configService.get('FRONTEND_HOST')
// const frontendUrl = configService.get('FRONTEND_HOST')

// app.enableCors({
// origin: [frontendUrl],
// methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'],
// credentials: true,
// })

app.enableCors({
origin: [frontendUrl],
origin: '*',
methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'],
credentials: true,
// credentials: true,
})

await app.register(fastifyMultipart, {
Expand Down

0 comments on commit 548fa52

Please sign in to comment.