This commit is contained in:
Katerina881 2023-02-07 11:25:18 +04:00
parent c171b23de7
commit c3b722bde7

View File

@ -0,0 +1,12 @@
package com.example.springip;
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("/**").allowedMethods("*");
}
}