Skip to content

Commit fa3f2f1

Browse files
committed
feat: Remove CORS
1 parent 4484642 commit fa3f2f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/kotlin/com/salt/developerjokes/api/SecurityConfig.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class SecurityConfig {
2929
@Bean
3030
fun defaultSecurityFilterChain(http: HttpSecurity): SecurityFilterChain {
3131
return http.csrf().disable()
32+
.cors().disable()
3233
.authorizeHttpRequests()
3334
.requestMatchers("/login").permitAll()
3435
.requestMatchers(HttpMethod.HEAD, "/**").permitAll()

0 commit comments

Comments
 (0)