0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Railsチュートリアル備忘録 -SSL編-

Posted at

初めに

SSL(Secure Sockets Layer)とはーカルのサーバからネットワークに流れる前に、大事な情報を暗号化する技術。ログイン機構をセキュアにしたり、 セッションハイジャック (Session Hijacking) の脆弱性に対しても多くの利点を生み出す

RailsでSSLを使うことを強制する

config/environments/production.rb
  config.force_ssl = true

追加中...

本番用のWebサイトでSSLを使えるようにするためには、ドメイン毎にSSL証明書を購入し、セットアップする必要がある
Railsの開発環境でHTTPSを有効にする

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?