Skip to content

Commit

Permalink
Merge pull request #110 from Academic-Weapons/107-content-security-po…
Browse files Browse the repository at this point in the history
…licy

107 content security policy
  • Loading branch information
JonasDAncher authored Jun 10, 2023
2 parents b71b79f + d8efe52 commit b9907c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http.headers()
.xssProtection()
.and()
.contentSecurityPolicy("form-action 'self' always; default-src 'none'; script-src 'self'; style-src 'self'; font-src 'self'; connect-src 'self'; img-src 'self' *.gravatar.com; frame-src 'none'; frame-ancestors 'none'; media-src 'none'; object-src 'none'; manifest-src 'none'; worker-src 'none'; prefetch-src 'none';");// form-action 'none' always;");
.contentSecurityPolicy("form-action 'self' always; default-src 'none'; script-src 'self'; style-src 'self' *.academicweapons.dk/*; font-src 'self'; connect-src 'self'; img-src 'self' *.gravatar.com; frame-src 'none'; frame-ancestors 'none'; media-src 'none'; object-src 'none'; manifest-src 'none'; worker-src 'none';");
return http.build();
}

Expand Down

0 comments on commit b9907c9

Please sign in to comment.