Skip to content

Commit

Permalink
Merge pull request #4 from KUSITMS-DEVOCEAN/fix/cors
Browse files Browse the repository at this point in the history
cors 수정
  • Loading branch information
sominyun authored Sep 7, 2024
2 parents 3d8f632 + ae05429 commit 4e8c6aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/paws/devocean/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*") // 허용할 출처 : 특정 도메인만 받을 수 있음
.allowedMethods("GET", "POST") // 허용할 HTTP method
.allowCredentials(true); // 쿠키 인증 요청 허용
.allowedOriginPatterns("*")
.allowedMethods("GET")
.allowCredentials(true);
}
}

0 comments on commit 4e8c6aa

Please sign in to comment.