Skip to content

Commit

Permalink
commit (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
aiaiaiai1 authored Oct 10, 2023
1 parent a9e5a49 commit 1be7c74
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ public class WebMvcConfig implements WebMvcConfigurer {

private static final String LOCALHOST_FRONTEND = "http://localhost:3000";
private static final String HTTPS_LOCALHOST_FRONTEND = "https://localhost:3000";
private static final String HTTPS_JERO = "https://jero-votogether-next.vercel.app/";
private static final String HTTPS_WUS = "https://wus-votogether-next-app.vercel.app/";
private static final String HTTPS_CHSUA = "https://chsua-votogether-next-app.vercel.app/";

private static final String DEV_SERVER = "https://dev.votogether.com";
private static final String PROD_SERVER = "https://votogether.com";

Expand All @@ -41,6 +45,9 @@ public FilterRegistrationBean<CorsFilter> corsFilterRegistrationBean() {
config.addAllowedOrigin(HTTPS_LOCALHOST_FRONTEND);
config.addAllowedOrigin(DEV_SERVER);
config.addAllowedOrigin(PROD_SERVER);
config.addAllowedOrigin(HTTPS_JERO);
config.addAllowedOrigin(HTTPS_WUS);
config.addAllowedOrigin(HTTPS_CHSUA);
config.addAllowedHeader("*");
config.addAllowedMethod("*");
config.addExposedHeader(HttpHeaders.LOCATION);
Expand Down

0 comments on commit 1be7c74

Please sign in to comment.