Skip to content

Commit

Permalink
cors is now enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
hknots committed Jul 5, 2024
1 parent c123932 commit 30841bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/no/fint/portal/ApplicationSecurity.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public AccessDecisionManager accessDecisionManager() {
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http
.csrf(AbstractHttpConfigurer::disable)
.cors().and()
.sessionManagement(AbstractHttpConfigurer::disable)
.addFilter(requestHeaderAuthenticationFilter(preAuthenticatedAuthenticationProvider()))
.authenticationProvider(preAuthenticatedAuthenticationProvider())
Expand Down

0 comments on commit 30841bb

Please sign in to comment.