<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inorinrinrin</author_name>
  <author_url>https://blog.hatena.ne.jp/inorinrinrin/</author_url>
  <blog_title>プププなテクブ</blog_title>
  <blog_url>https://blog.inorinrinrin.com/</blog_url>
  <categories>
    <anon>JS/TS</anon>
    <anon>SWE</anon>
  </categories>
  <description>最近、Next.jsがどのようにCSRF対策をしているのかを考える機会がありました。 そんななかで色々と学んだことを今回は書きます。 CSRFとは 本題に入っていく前に、いま一度CSRFについて改めて復習しておきましょう。CSRF(Cross-Site Request Forgery)とは、ユーザーが意図しないリクエストを攻撃者が勝手に送信させる攻撃です。以下に攻撃の一連の流れを可視化しています。 sequenceDiagram participant User as ユーザー participant Bank as 銀行サイト (bank.example) participant Evil …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.inorinrinrin.com%2Fentry%2F2026%2F02%2F20%2F183408&quot; title=&quot;Next.jsはどのようにCSRF対策をしているのか？ - プププなテクブ&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>2026-02-20 18:34:08</published>
  <title>Next.jsはどのようにCSRF対策をしているのか？</title>
  <type>rich</type>
  <url>https://blog.inorinrinrin.com/entry/2026/02/20/183408</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
