Skip to content

Commit

Permalink
refactor: add form-action to improve csp configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospereira committed May 10, 2024
1 parent 2f53f4b commit 1682973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/base.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ micronaut {
csp {
enabled = true
generateNonce = true
policyDirectives = "default-src 'self'; script-src 'strict-dynamic' 'unsafe-inline' 'nonce-{#nonceValue}' http: https:; style-src 'self' 'unsafe-inline'; font-src 'self' data:; img-src 'self' data:; connect-src 'self'; object-src 'none'; base-uri 'none'; frame-ancestors 'self';"
policyDirectives = "default-src 'self'; script-src 'strict-dynamic' 'unsafe-inline' 'nonce-{#nonceValue}' http: https:; style-src 'self' 'unsafe-inline'; font-src 'self' data:; img-src 'self' data:; connect-src 'self'; object-src 'none'; base-uri 'none'; form-action 'self'; frame-ancestors 'self';"
}
}
}
Expand Down

0 comments on commit 1682973

Please sign in to comment.