Skip to content

Commit

Permalink
fix: setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Angular2Guy committed May 7, 2024
1 parent 2af8464 commit 3d4146d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public SecurityFilterChain configure(HttpSecurity http) throws Exception {
.sessionManagement(mySm -> mySm.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
.headers(myHeaders -> myHeaders.xssProtection(myXss -> myXss.headerValue(HeaderValue.ENABLED)))
.headers(myHeaders -> myHeaders.contentSecurityPolicy(myCsp -> myCsp.policyDirectives(
"default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline';")))
"default-src 'self' data:; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline';")))
.headers(myHeaders -> myHeaders.frameOptions(myFo -> myFo.sameOrigin()))
// .addFilterBefore(customFilter, UsernamePasswordAuthenticationFilter.class)
;
Expand Down

0 comments on commit 3d4146d

Please sign in to comment.