Skip to content

Rails 7 Unsafe redirects #137

@marwann

Description

@marwann

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions