Commit e8798eb
authored
Pass values to CSP frame_ancestors as individual arguments (#1929)
* Pass values to CSP frame_ancestors as individual arguments
Rails core has patched a CVE preventing passing a string
with whitespace as an argument.
rails/rails@3da2479
This patch passes the arguments individually instead
which achieves the same result whilst meeting the new
requirements.
* Reimplement frame_ancestors proc to fix tests
@sle-c has pointed out that the tests rely on the proc
and suggests reimplemeting the proc and returning an array.
This patch implements the recommendation and achieves the
same result.1 parent 7411e62 commit e8798eb
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
0 commit comments