Class CorsConfig
java.lang.Object
ntnu.idatt2016.v233.SmartMat.config.security.CorsConfig
Cors configuration for application
- Version:
- 1.1
- Author:
- Birk, Anders
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
Configures CORS for the application.
-
Constructor Details
-
CorsConfig
public CorsConfig()
-
-
Method Details
-
corsConfigurer
@Bean public org.springframework.web.servlet.config.annotation.WebMvcConfigurer corsConfigurer()Configures CORS for the application.- Returns:
WebMvcConfigurer
with CORS configuration
-