{"id":7636,"date":"2022-01-14T06:13:30","date_gmt":"2022-01-13T21:13:30","guid":{"rendered":"https:\/\/yumishin.com\/?p=7636"},"modified":"2022-01-14T06:13:30","modified_gmt":"2022-01-13T21:13:30","slug":"heroku-blocked-host","status":"publish","type":"post","link":"https:\/\/yumishin.com\/?p=7636","title":{"rendered":"\u3010Rails7\u3011Heroku\u3067Blocked host\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u3068\u304d\u306e\u5bfe\u51e6\u6cd5"},"content":{"rendered":"<p>\u3069\u3046\u3082\u3002<\/p>\n<p>\u4eca\u56de\u306f<code>Heroku<\/code>\u306b<code>Rails7<\/code>\u306e\u30a2\u30d7\u30ea\u3092\u30c7\u30d7\u30ed\u30a4\u3057\u305f\u6642\u306b\u767a\u751f\u3057\u305f\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u306e\u5bfe\u51e6\u6cd5\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h2 id=\"i-0\">\u3010Rails7\u3011Heroku\u3067Blocked host\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u3068\u304d\u306e\u5bfe\u51e6\u6cd5<\/h2>\n<h3 id=\"i-1\">\u7d50\u8ad6<\/h3>\n<p>\u30a2\u30d7\u30ea\u306eURL\u304c\u767b\u9332\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u30d6\u30ed\u30c3\u30af\u3055\u308c\u3066\u3057\u307e\u3063\u3066\u307e\u3059\u3002<\/p>\n<p>\u3067\u3059\u306e\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b<code>config\/environments\/development.rb<\/code>\u306b\u3066\u3001\u30db\u30ef\u30a4\u30c8\u30ea\u30b9\u30c8\u306b<code>\u8a31\u53ef\u3057\u305f\u3044\u30db\u30b9\u30c8\u540d<\/code>\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<div class=\"pre_tag\"><span><i class=\"fa fa-code\"><\/i> config\/environments\/development.rb<\/span><\/p>\n<pre><code>Rails.application.configure do\n\uff08\u4e2d\u7565\uff09\n  config.hosts &lt;&lt; \"&lt;\u8a31\u53ef\u3057\u305f\u3044\u30db\u30b9\u30c8\u540d&gt;\"\n\uff08\u4e2d\u7565\uff09\nend<\/code><\/pre>\n<\/div>\n<h3 id=\"i-2\">\u30a8\u30e9\u30fc\u5185\u5bb9<\/h3>\n<header><\/header>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7637\" src=\"https:\/\/yumishin.com\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-04-at-20.16.31.png\" alt=\"\" width=\"3104\" height=\"1974\" srcset=\"https:\/\/yumishin.com\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-04-at-20.16.31.png 3104w, https:\/\/yumishin.com\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-04-at-20.16.31-1536x977.png 1536w, https:\/\/yumishin.com\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-04-at-20.16.31-2048x1302.png 2048w, https:\/\/yumishin.com\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-04-at-20.16.31-940x598.png 940w\" sizes=\"auto, (max-width: 3104px) 100vw, 3104px\"><\/p>\n<p>\ud83d\udc47\u4ee5\u4e0b\u306f\u30a8\u30e9\u30fc\u306e\u5168\u6587\u3067\u3059\u3002<\/p>\n<div class=\"pre_tag\"><span><i class=\"fa fa-code\"><\/i> \u30b3\u30fc\u30c9<\/span><\/p>\n<pre><code>Blocked host: shielded-plains-89486.herokuapp.com\nTo allow requests to shielded-plains-89486.herokuapp.com make sure it is a valid hostname (containing only numbers, letters, dashes and dots), then add the following to your environment configuration:\n\nconfig.hosts &lt;&lt; \"shielded-plains-89486.herokuapp.com\"\n\nFor more details view:&nbsp;the Host Authorization guide<\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u3069\u3046\u3082\u3002 \u4eca\u56de\u306fHeroku\u306bRails7\u306e\u30a2\u30d7\u30ea\u3092\u30c7\u30d7\u30ed\u30a4\u3057\u305f\u6642\u306b\u767a\u751f\u3057\u305f\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u306e\u5bfe\u51e6\u6cd5\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u3066\u304a\u304d\u307e\u3059\u3002 \u3010Rails7\u3011Heroku\u3067Blocked host\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u3068\u304d\u306e\u5bfe\u51e6\u6cd5 \u7d50\u8ad6 \u30a2\u30d7 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":7698,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[272],"tags":[],"class_list":{"0":"post-7636","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-programing","8":"entry"},"_links":{"self":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/7636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7636"}],"version-history":[{"count":3,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/7636\/revisions"}],"predecessor-version":[{"id":7699,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/7636\/revisions\/7699"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/media\/7698"}],"wp:attachment":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}