hotwired / turbo-rails

Use Turbo in your Ruby on Rails app
https://turbo.hotwired.dev
MIT License
2.03k stars 305 forks source link

Mixed Content Error with Turbo Drive #620

Open epugh opened 2 months ago

epugh commented 2 months ago

I have a proxy (HAProxy) that provides the SSL support to my Rails application. I enabled Turbo Drive and on my form submissions (but not my GET requests I get the error:

Mixed Content: The page at 'https://tools.dev.bigcorpo.com/quepid/books/34/judge' was loaded over HTTPS, but requested an insecure resource 'http://tools.dev.bigcorp.com/quepid/books/34/judge'. This request has been blocked; the content must be served over HTTPS.

I suspect this is because Rails is running on http and not https, and therefore Turbo Drive is attempting to make those http calls in response to the form? Is there a way to have Turbo Drive make relative url calls versus full path calls?

Any debugging options in Turbo Drive I could enable to confirm the behavior?