Skip to content

Commit

Permalink
OY-4985 Poistettu CORS-headerit
Browse files Browse the repository at this point in the history
  • Loading branch information
jkorri committed Feb 4, 2025
1 parent 2841c87 commit 17b8b9b
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import fi.vm.sade.valintalaskenta.tulos.mapping.ValintalaskentaModelMapper;
import fi.vm.sade.valintalaskenta.tulos.service.impl.JarjestyskriteerihistoriaServiceImpl;
import org.springframework.context.annotation.*;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.scheduling.annotation.EnableAsync;

@Configuration
Expand Down Expand Up @@ -43,14 +41,4 @@ public ValintalaskentaModelMapper valintalaskentaModelMapper() {
public SijoitteluModelMapper sijoitteluModelMapper() {
return new SijoitteluModelMapper();
}

@Bean
public WebMvcConfigurer corsConfigurer() {
return new WebMvcConfigurer() {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/").allowedOrigins("*");
}
};
}
}

0 comments on commit 17b8b9b

Please sign in to comment.