Commit 57a67c4e by 熊付

2

1 parent 4a55b380
......@@ -10,7 +10,8 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
@RestController
@RequestMapping(value="/api/v1/financial/contracts")
public class BaseController extends WebMvcConfigurerAdapter {
public void assCoresMappings(CorsRegistry corsRegistry) {
@Override
public void addCorsMappings(CorsRegistry corsRegistry) {
corsRegistry.addMapping("/api/v1/financial/contracts/**")
.allowedOrigins("*")
.allowedMethods("GET","POST","PUT","OPTION","DELETE","PATCH")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!