Skip to content

Commit e2940d6

Browse files
Update SecurityConfig.java
1 parent 6ee656e commit e2940d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/backend/src/main/java/edu/bu/cs673/secondhand/config/SecurityConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
6565
@Bean
6666
public CorsFilter corsFilter() {
6767
CorsConfiguration config = new CorsConfiguration();
68-
config.setAllowedOrigins(List.of("http://localhost:8081"));
68+
// config.setAllowedOrigins(List.of("http://localhost:8081"));
6969
config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS"));
7070
config.setAllowedHeaders(List.of("*"));
7171
config.setAllowCredentials(true);
@@ -77,7 +77,7 @@ public CorsFilter corsFilter() {
7777

7878
private UrlBasedCorsConfigurationSource corsConfigurationSource() {
7979
CorsConfiguration config = new CorsConfiguration();
80-
config.setAllowedOrigins(List.of("http://localhost:8081"));
80+
// config.setAllowedOrigins(List.of("http://localhost:8081"));
8181
config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS"));
8282
config.setAllowedHeaders(List.of("*"));
8383
config.setAllowCredentials(true);

0 commit comments

Comments
 (0)