Fix "Blocked host" error in development environment.
Fix custom hostnames being blocked in the development environment.
This commit is contained in:
@@ -73,5 +73,5 @@ Rails.application.configure do
|
||||
|
||||
# https://bigbinary.com/blog/rails-6-adds-guard-against-dns-rebinding-attacks
|
||||
# hxxps://github.com/rails/rails/pull/33145
|
||||
config.hosts += [".ngrok.io", ".lvh.me", ".xip.io", ".nip.io"]
|
||||
config.hosts += [".ngrok.io", ".lvh.me", ".xip.io", ".nip.io", Danbooru.config.hostname]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user