LoginSignup
0
0

More than 3 years have passed since last update.

Railsのバージョンを5から6にしたらBlocked Hostというエラーが出てきてびっくりした話

Posted at

開発中のサービスのRailsのバージョンを5から6に上げたのですが、Blocked hostというエラーが出るようになりこれまで使えていたユーザーの招待機能が使えなくなる事象に遭遇しました。

Rails 6から導入された新しいセキュリティー対策のようです。
解決策としてエラー画面に表示されている通りconfigファイルに許可するホストを追加しました。

development.rb or production.rb
config.hosts << "app.survelion.com"

バージョンアップの際は気をつけましょう。

参照記事: https://www.tmp1024.com/articles/solve-blocked-host-of-rails

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