This commit is contained in:
= 2020-05-24 18:06:47 +02:00
parent b7f055ba9a
commit b5c24a47ef

View File

@ -0,0 +1,14 @@
package com.resultprediction.polishekstraklasa.Predictions.config;
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 WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**").allowedMethods("*");
}
}