TechFeed
  • playlist_add_check Channels

Safe redirects in Rails 7
DRANK

Enforcing canonical URLs by redirecting to params is not safe and may raise an exception. Use strong params with allow_other_host: false for security.

mattbrictson.com 2 years ago
Related Topics: Ruby on Rails
arrow_back
open_in_new Open page
https://mattbrictson.com/blog/safe-rails-redirects
  • Blog
  • Frequently Asked Questions
  • Feedback
  • Terms of service
  • Privacy Policy
  • Posting guidelines
  • Special thanks
  • About Company
© 2025 TechFeed Inc.