Skip to content

Commit

Permalink
Merge pull request #146 from MUIT-UMC/develop
Browse files Browse the repository at this point in the history
[merge] 250220 / 38th deploy
  • Loading branch information
chaechaen authored Feb 20, 2025
2 parents dd3fe67 + ecbee37 commit 1622428
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/muit/backend/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:5173", "http://localhost:8080", "http://13.209.69.125:8080", "https://muitproject.vercel.app")
.allowedOrigins("http://localhost:5173", "http://localhost:8080", "http://13.209.69.125:8080", "https://muitproject.vercel.app", "http://muit-front.s3-website.ap-northeast-2.amazonaws.com", "http://muit.site", "https://muit.site")
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS", "HEAD", "PATCH")
.allowedHeaders("*")
.allowCredentials(true)
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/muit/backend/config/jwt/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
config.addAllowedOrigin("http://localhost:5173"); // '*' 대신 명시적 출처 사용
config.addAllowedOrigin("http://13.209.69.125:8080"); //배포된 프론트엔드 서버 추가
config.addAllowedOrigin("https://muitproject.vercel.app"); //배포된 프론트엔드 주소 추가
config.addAllowedOrigin("http://muit-front.s3-website.ap-northeast-2.amazonaws.com"); //배포된 프론트엔드 주소 추가
config.addAllowedOrigin("http://muit.site"); //배포된 프론트엔드 주소 추가
config.addAllowedOrigin("https://muit.site"); //배포된 프론트엔드 주소 추가
//config.addAllowedOrigin("*");
config.addAllowedHeader("*");
config.addAllowedMethod("*");
Expand Down

0 comments on commit 1622428

Please sign in to comment.