Skip to content

Commit

Permalink
hotfix: configure cors
Browse files Browse the repository at this point in the history
  • Loading branch information
jcw1031 committed Apr 26, 2024
1 parent e157042 commit eee916d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main/java/ac/knu/likeknu/config/WebConfiguration.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package ac.knu.likeknu.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebConfiguration implements WebMvcConfigurer {

@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowedMethods("*");
}
}

0 comments on commit eee916d

Please sign in to comment.