Skip to content

Accept allow_other_host as redirect option with location#255

Merged
carlosantoniodasilva merged 2 commits into
mainfrom
ca-redirect-allow-other-host
Apr 6, 2026
Merged

Accept allow_other_host as redirect option with location#255
carlosantoniodasilva merged 2 commits into
mainfrom
ca-redirect-allow-other-host

Conversation

@carlosantoniodasilva

Copy link
Copy Markdown
Member

When respond_with + location needs to redirect to an external source, it may be necessary to pass allow_other_host: true to allow Rails to perform the redirect, otherwise it will be blocked.

Closes #237

When `respond_with` + `location` needs to redirect to an external
source, it may be necessary to pass `allow_other_host: true` to allow
Rails to perform the redirect, otherwise it will be blocked.

Closes #237
@carlosantoniodasilva carlosantoniodasilva merged commit ba83c8a into main Apr 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

location compatibility with allow_other_host

1 participant