Skip to content

Commit

Permalink
fix: Access-Control-Allow-Credentials 응답 헤더에 true 포함 (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
Coalery authored Nov 17, 2024
2 parents 5a0ca51 + 5bf2215 commit 7a6a13c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ async function bootstrap() {
const appConfig = app.get(ConfigService).getOrThrow<AppConfig>('app');
const corsOptions: CorsOptions | undefined =
appConfig.env === 'production'
? { origin: ['https://khlug.org', 'https://app.khlug.org'] }
? {
origin: ['https://khlug.org', 'https://app.khlug.org'],
credentials: true,
}
: undefined;

app.enableCors(corsOptions);
Expand Down

0 comments on commit 7a6a13c

Please sign in to comment.