Skip to content

Commit

Permalink
Merge pull request #89 from LocalMingle/dev
Browse files Browse the repository at this point in the history
cors 배포
  • Loading branch information
totobon6125 authored Oct 24, 2023
2 parents 76433c4 + 8525d66 commit a67bc76
Show file tree
Hide file tree
Showing 2 changed files with 6,224 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function bootstrap() {
SwaggerModule.setup('api', app, document);
//cors 정책
app.enableCors({
origin: ['http://localhost:5173','https://d2r603zvpf912o.cloudfront.net/'],
origin: ['http://localhost:5173','https://d2r603zvpf912o.cloudfront.net/','https://totobon.store'],
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
credentials: true, // 쿠키를 사용하려면 true로 설정
exposedHeaders: ['accessToken', 'refreshToken'],
Expand Down
Loading

0 comments on commit a67bc76

Please sign in to comment.