15 lines
378 B
Java
15 lines
378 B
Java
package de.ph87.data.web;
|
|
|
|
import org.springframework.context.annotation.*;
|
|
import org.springframework.web.servlet.config.annotation.*;
|
|
|
|
@Configuration
|
|
public class WebConfig implements WebMvcConfigurer {
|
|
|
|
@Override
|
|
public void addCorsMappings(final CorsRegistry registry) {
|
|
registry.addMapping("/**").allowedOrigins("*").allowedMethods("*").allowedHeaders("*");
|
|
}
|
|
|
|
}
|