Skip to content

Commit

Permalink
fix(backend_books): 🔒 Enable CORS
Browse files Browse the repository at this point in the history
Added CORS config to SecurityConfig.java
  • Loading branch information
Someoneamzing committed Aug 30, 2021
1 parent c08c58f commit ea50975
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests().anyRequest().permitAll().and().headers().frameOptions().sameOrigin().and().csrf().disable();
http.authorizeRequests().anyRequest().permitAll()
.and().headers().frameOptions().sameOrigin()
.and().cors().and().csrf().disable();
}

@Autowired
Expand Down

0 comments on commit ea50975

Please sign in to comment.