We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f11d2aa commit 2f31ebeCopy full SHA for 2f31ebe
src/main/java/com/pj/keycloak/security/SecurityConfig.java
@@ -62,6 +62,7 @@ protected void configure(HttpSecurity http) throws Exception
62
63
http.cors();
64
}
65
+
66
//Cors filter to accept incoming requests
67
@Bean
68
CorsConfigurationSource corsConfigurationSource()
@@ -75,14 +76,4 @@ CorsConfigurationSource corsConfigurationSource()
75
76
return source;
77
78
-/* public WebMvcConfigurer corsConfigurer()
79
- {
80
- return new WebMvcConfigurer() {
81
- @Override
82
- public void addCorsMappings(CorsRegistry registry)
83
84
- registry.addMapping("/api/*").allowedOrigins("http://localhost:4200");
85
- }
86
- };
87
- }*/
88
0 commit comments