1

According to the documentation:

By default, Turbo Drive only loads URLs with the same origin—i.e. the same protocol, domain name, and port—as the current document. A visit to any other URL falls back to a full page load.

However I would like to have Turbo work between subdomains (within the same base domain). Is there a way to accomplish this?

hananamar
  • 1,166
  • 15
  • 25
  • Can you explain more about your use case? Is this something that you've done with plain Rails before?Are you just trying to send HTML responses between subdomains, or is there something else? – aidan Dec 02 '21 at 16:47
  • Were you able to find a workaround for this? – Chris Jul 19 '22 at 19:28
  • @aidan This was part of studying Hotwire, and I was trying to refactor an existing multi-subdomain application to an SPA. Now I recognize it might have been better to focus on converting each subdomain portion to a separate SPA. – hananamar Jul 21 '22 at 07:00
  • 1
    @Chris No. I am not actively working with Hotwire at the moment. I will leave this question open in case someone finds a way to do this and wishes to share. – hananamar Jul 21 '22 at 07:02
  • I found two workarounds: https://github.com/hotwired/turbo-rails/issues/161 – Chris Jul 22 '22 at 13:36

0 Answers0