<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>willnet</author_name>
  <author_url>https://blog.hatena.ne.jp/willnet/</author_url>
  <blog_title>おもしろwebサービス開発日記</blog_title>
  <blog_url>https://blog.willnet.in/</blog_url>
  <categories>
  </categories>
  <description>RailsではCSRF攻撃を防ぐために、フォームからのリクエスト送信時に自動でトークン(Authenticity Token)を付与して検証する仕組みを持っています。この仕組みがデフォルトで有効になっているため深く考えなくてもセキュアな実装になる点は便利です。一方で、ユーザが普通にサービスを利用しているにもかかわらずトークンの検証に失敗する偽陽性も度々起こり面倒に感じている人も多いように思います。 Rails8.2以降は、そんなトークンの仕組みを使わずにCSRFを防げるようになりそうです。次のPRが先日マージされました。 Use a modern approach for cross-site…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.willnet.in%2Fentry%2F2025%2F12%2F15%2F192245&quot; title=&quot;Rails8.2ではCSRFトークンを使わずにCSRFを防げるようになりそう - おもしろwebサービス開発日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-12-15 19:22:45</published>
  <title>Rails8.2ではCSRFトークンを使わずにCSRFを防げるようになりそう</title>
  <type>rich</type>
  <url>https://blog.willnet.in/entry/2025/12/15/192245</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
