Ruby on rails: force_ssl not redirecting from http to https when using thin start --ssl

前端 未结 5 1627
生来不讨喜
生来不讨喜 2021-01-21 03:49

I have been trying to configure my rails project to use SSL (as application wide) with thin (by adding thin gem and placing config.force_ssl = true to applica

5条回答
  •  迷失自我
    2021-01-21 04:17

    Your PC as (localhost) can self sign SSL certificate and your browser can accept it, but i think that browser will not automatically accept certificate with security on that layer. Maybe to try to add your localhost certificate to the browser ?

提交回复
热议问题