File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
src/main/java/net/hackyourfuture/coursehub Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ services:
2121 profiles :
2222 - include-frontend
2323 environment :
24- BACKEND_URL : http://host.docker.internal :8080
24+ BACKEND_URL : http://localhost :8080
2525 ports :
2626 - " 80:80"
2727 course-hub-backend :
Original file line number Diff line number Diff line change @@ -21,8 +21,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
2121 return http .csrf (AbstractHttpConfigurer ::disable )
2222 .cors (cors -> cors .configurationSource (request -> {
2323 var config = new CorsConfiguration ();
24- config .addAllowedOriginPattern ("http://localhost:8080" );
25- config .addAllowedOriginPattern ("http://host.docker.internal:8080" );
24+ config .addAllowedOriginPattern ("http://localhost" );
2625 config .addAllowedOriginPattern ("https://coursehub.hyf.dev" );
2726 config .addAllowedHeader ("*" );
2827 config .addAllowedMethod ("*" );
You can’t perform that action at this time.
0 commit comments