{"type":"rich","published":"2016-03-15 20:27:32","provider_url":"https://hatena.blog","blog_title":"DesignAssembler","blog_url":"https://hyottokoaloha.hatenablog.com/","author_name":"hyottokoaloha","author_url":"https://blog.hatena.ne.jp/hyottokoaloha/","categories":[],"description":"rails\u3067\u30ac\u30ea\u30ac\u30eajs\u3067ajax\u306e\u5b9f\u88c5\u3057\u3066\u308b\u3068POST\u3057\u305f\u6642CSRF\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u3002 Can't verify CSRF token authenticity \u89e3\u6c7a\u65b9\u6cd5\u30b0\u30b0\u308b\u3068\u300cCSRF\u5bfe\u7b56\u3092\u30aa\u30d5\u306b\u3059\u308c\u3070\u52d5\u304f\u3088\u3046\u306b\u306a\u308b\u300d\u3068\u66f8\u3044\u3066\u3042\u308b\u8a18\u4e8b\u304c\u591a\u304b\u3063\u305f\u3067\u3059\u304c\u3001\u305d\u308c\u3067\u306f\u6839\u672c\u7684\u306a\u89e3\u6c7a\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002 CSRF\u5bfe\u7b56\u3092\u907f\u3051\u308b\u306b\u306f\u3001\u30d8\u30c3\u30c0\u30fc\u306bauthenticity_token\u304c\u5fc5\u8981\u306a\u3088\u3046\u3067\u3059\u3002 ajax\u90e8\u5206\u306bauthenticity_token\u3092\u8ffd\u52a0\u3057\u307e\u3059 $.ajax({ type :\"POST\", url: \"/users/add_option_tag\", data: { lat: lat, lng\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhyottokoaloha.hatenablog.com%2Fentry%2F2016%2F03%2F15%2F202732\" title=\"Rails\u3067\u306eCSRF\u5bfe\u7b56\u907f\u3051 - DesignAssembler\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"Rails\u3067\u306eCSRF\u5bfe\u7b56\u907f\u3051","width":"100%","image_url":null,"height":"190","url":"https://hyottokoaloha.hatenablog.com/entry/2016/03/15/202732","version":"1.0","provider_name":"Hatena Blog"}