I'm using cloudfront to serve assets for my rails app on heroku. Over http this works fine. But when I access my website via https, assets don't load, and I get this error:
Mixed Content: The page was loaded over HTTPS, but requested an insecure stylesheet. This request has been blocked; the content must be served over HTTPS Things I tried:
- Adding https:// to the front of the URL in rails config.
- Setting origin protocol policy to https only on cloudfront.
- Installing Rack Cors.