Skip to content

Commit

Permalink
EA-3669 smerge develop
Browse files Browse the repository at this point in the history
  • Loading branch information
SrishtiSingh-eu committed Feb 26, 2024
1 parent 9760e9a commit d3448e1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
*Setup CORS for all requests and setup default Content-type
* @author Sristhti Singh
* @since 23 October 2023
*/
@Configuration
@EnableWebMvc
public class WebMvcConfig implements WebMvcConfigurer {

@Override
public void addCorsMappings(CorsRegistry registry) {

registry.addMapping("/**")
.allowedOrigins("*")
.allowedMethods("GET", "POST", "OPTIONS")
Expand Down

0 comments on commit d3448e1

Please sign in to comment.