Skip to content

Commit 66560ac

Browse files
Konstantin PankratovKonstantin Pankratov
authored andcommitted
Update CORS
1 parent a9526f1 commit 66560ac

File tree

1 file changed

+1
-1
lines changed
  • server/src/main/java/com/studybuddies/server/configuration

1 file changed

+1
-1
lines changed

server/src/main/java/com/studybuddies/server/configuration/CORS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
public class CORS {
1313

1414
@Bean
15-
public CorsConfigurationSource cors() {
15+
public CorsConfigurationSource corsConfigurationSource() {
1616
CorsConfiguration conf = new CorsConfiguration();
1717
conf.setAllowedOrigins(Arrays.asList("http://localhost:3000", "http://localhost:7070"));
1818
conf.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE", "OPTIONS"));

0 commit comments

Comments
 (0)