Chapter 7: include how to ensure requests are HTTPS
mrthan opened this issue · 0 comments
mrthan commented
We have config.force_ssl = true
across all envs and while migrating to request specs everything was getting HTTP 301/307s. I finally realised the specs were making HTTP requests, not HTTPS and with a bunch more digging we summarised our experience/fix here:
Some mention of how to ensure HTTPS requests are used in the specs would be great. There was very little information anywhere on this topic. And if one needs to use _url rather than _path helpers would strengthen this very useful chapter.
Thanks for your work on this book regardless, it's been invaluable.