File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
src/main/java/org/myteam/server/global Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public CorsFilter corsFilter() {
2626 UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource ();
2727 CorsConfiguration config = new CorsConfiguration ();
2828
29- final String [] ALLOWED_ORIGIN = {frontUrl };
29+ final String [] ALLOWED_ORIGIN = {frontUrl , "http://localhost:3000" };
3030
3131 config .setAllowCredentials (true );
3232 config .setAllowedOrigins (Arrays .asList (ALLOWED_ORIGIN ));
Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ public CorsConfigurationSource configurationSource() {
199199 configuration .addAllowedHeader ("*" );
200200 configuration .addAllowedMethod ("*" );
201201 configuration .addAllowedOriginPattern (frontUrl ); // TODO_ 추후 변경 해야함 배포시
202+ configuration .addAllowedOriginPattern ("http://localhost:3000" ); // TODO_ 추후 변경 해야함 배포시
202203 configuration .setAllowCredentials (true );
203204 configuration .addExposedHeader (HEADER_AUTHORIZATION );
204205 configuration .addExposedHeader (REFRESH_TOKEN_KEY );
You can’t perform that action at this time.
0 commit comments