File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
core/src/main/kotlin/net/osable/core Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ import org.springframework.security.web.authentication.SimpleUrlAuthenticationFa
13
13
import org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler
14
14
import org.springframework.security.web.csrf.CookieCsrfTokenRepository
15
15
import org.springframework.web.bind.annotation.RestController
16
+ import org.springframework.web.cors.CorsConfiguration
17
+ import org.springframework.web.cors.UrlBasedCorsConfigurationSource
16
18
17
19
@Configuration
18
20
class SecurityConfiguration {
@@ -43,6 +45,10 @@ class SecurityConfiguration {
43
45
accessDeniedException.printStackTrace()
44
46
}
45
47
48
+ http.cors().configurationSource {
49
+ CorsConfiguration ().applyPermitDefaultValues()
50
+ }
51
+
46
52
return http.build()
47
53
}
48
54
You can’t perform that action at this time.
0 commit comments