Skip to content

Commit

Permalink
feat: localhost https ์ถ”๊ฐ€ (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyY00n authored Oct 13, 2023
1 parent 2ce4d35 commit 1ecd844
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/main/java/zipgo/common/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class WebConfig implements WebMvcConfigurer {
private static final String MAIN_SERVER_DOMAIN = "https://zipgo.pet";
private static final String DEV_SERVER_DOMAIN = "https://dev.zipgo.pet";
private static final String FRONTEND_LOCALHOST = "http://localhost:3000";
private static final String HTTPS_FRONTEND_LOCALHOST = "https://localhost:3000";

private final AuthInterceptor authInterceptor;
private final LoggingInterceptor loggingInterceptor;
Expand All @@ -33,7 +34,7 @@ public class WebConfig implements WebMvcConfigurer {
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping(ALLOW_ALL_PATH)
.allowedMethods(ALLOWED_METHODS)
.allowedOrigins(MAIN_SERVER_DOMAIN, DEV_SERVER_DOMAIN, FRONTEND_LOCALHOST)
.allowedOrigins(MAIN_SERVER_DOMAIN, DEV_SERVER_DOMAIN, FRONTEND_LOCALHOST, HTTPS_FRONTEND_LOCALHOST)
.exposedHeaders(LOCATION);
}

Expand Down

0 comments on commit 1ecd844

Please sign in to comment.