Hotwire Discussion

Hotwire rails app: redirect to external service fails

I am integrating discourse single sign on with hotwire rails application, everything works fine till redirection, when it redirects I see there is CORS issue browser, ofcourse its turbo request so it attempts to fetch the response from give URL so it throws CORS error, How we can do actual redirection here?.

You’ll probably need to opt out of Turbo in this case with data-turbo="false". I know it wasn’t your choice, but it doesn’t really make sense to make a Turbo request to a third party.