{"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgouf.hatenablog.com%2Fentry%2F2018%2F03%2F31%2F125255\" title=\"Q. \u958b\u767a\u74b0\u5883\u3067\u8907\u6570\u30b5\u30fc\u30d0\u3092\u7acb\u3061\u4e0a\u3052\u305f\u3089 CORS \u306e\u30dd\u30ea\u30b7\u30fc\u3067\u901a\u4fe1\u3067\u304d\u306a\u3044(Sinatra) - \u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","author_name":"innocent-zero","blog_title":"\u30d6\u30ed\u30b0","published":"2018-03-31 12:52:55","title":"Q. \u958b\u767a\u74b0\u5883\u3067\u8907\u6570\u30b5\u30fc\u30d0\u3092\u7acb\u3061\u4e0a\u3052\u305f\u3089 CORS \u306e\u30dd\u30ea\u30b7\u30fc\u3067\u901a\u4fe1\u3067\u304d\u306a\u3044(Sinatra)","blog_url":"https://gouf.hatenablog.com/","height":"190","description":"A. sinatra-cors \u3067\u901a\u4fe1\u3092\u8a31\u53ef\u3059\u308b require 'sinatra' require 'sinatra/cors' set :allow_origin, 'http://example.com http://localhost:8081' # \u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u308b\u958b\u767a\u74b0\u5883\u30b5\u30fc\u30d0\u3092\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u3067\u8ffd\u8a18 set :allow_methods, 'GET,HEAD,POST' set :allow_headers, 'content-type,if-modified-since' set :expose_headers, 'location,link' get '/book.json' \u2026","image_url":null,"url":"https://gouf.hatenablog.com/entry/2018/03/31/125255","provider_name":"Hatena Blog","type":"rich","categories":["Q&A","Ruby"],"author_url":"https://blog.hatena.ne.jp/innocent-zero/","width":"100%"}