devise_masquerade
devise_masquerade copied to clipboard
Rails 7 Unsafe redirects
What would be the best way to bypass Rails 7 warnings with after_back_masquerade_path_for
?
The error I get when I try to end the masquerade session, redirecting cross-domain:
ActionController::Redirecting::UnsafeRedirectError: Unsafe redirect to "https://admin.example.com", pass allow_other_host: true to redirect anyway.