Commit b5916dd
committed
Add missing CSP directives that do not fall back to default-src
frame-ancestors, form-action, and base-uri do not inherit from
default-src and must be explicitly defined.
- frame_ancestors 'self': prevents clickjacking via iframe embedding
- form_action 'self': restricts where forms can submit
- base_uri 'self': prevents base tag injection attacks
Note: report-to is not supported by secure_headers ~> 3.9; report-uri
is already set and remains the reporting mechanism.
CP4AIOPS-150671 parent be93876 commit b5916dd
1 file changed
+13
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
0 commit comments