Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 7 Unsafe redirects #137

Open
marwann opened this issue Dec 22, 2023 · 0 comments
Open

Rails 7 Unsafe redirects #137

marwann opened this issue Dec 22, 2023 · 0 comments

Comments

@marwann
Copy link

marwann commented Dec 22, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant