Add config
This commit is contained in:
parent
d4b050b4f5
commit
5e08a59326
13
src/main/java/ip/labwork/WebConfiguration.java
Normal file
13
src/main/java/ip/labwork/WebConfiguration.java
Normal file
@ -0,0 +1,13 @@
|
||||
package ip.labwork;
|
||||
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.web.servlet.config.annotation.CorsRegistry;
|
||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
||||
|
||||
@Configuration
|
||||
class WebConfiguration implements WebMvcConfigurer {
|
||||
@Override
|
||||
public void addCorsMappings(CorsRegistry registry){
|
||||
registry.addMapping("/**").allowedMethods("*");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user