Commit f06c2b6
Fix unsafe redirect error in cockpit controller
Add allow_other_host: true parameter to redirect_to call to address
Rails security changes that now require explicit permission for
redirects to other hosts. The redirect is already validated against
the expected hostname on line 24, making this safe.
Fixes test failures:
- test_0008_should allow redirect to valid cockpit URL
- test_0009_should allow redirect with http scheme to same hostname
- test_0010_should handle case insensitive scheme validation
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent c4d6e27 commit f06c2b6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments