Class CORSConfiguration


  • @Configuration
    public class CORSConfiguration
    extends java.lang.Object
    Configures CORS to correct localhost port
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.web.servlet.config.annotation.WebMvcConfigurer corsConfigurer()
      Allows CORS to frontend application
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CORSConfiguration

        public CORSConfiguration()
    • Method Detail

      • corsConfigurer

        @Bean
        public org.springframework.web.servlet.config.annotation.WebMvcConfigurer corsConfigurer()
        Allows CORS to frontend application
        Returns:
        new WebMvcConfigurer