<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>morihirok</author_name>
  <author_url>https://blog.hatena.ne.jp/morihirok/</author_url>
  <blog_title>STORES Product Blog</blog_title>
  <blog_url>https://product.st.inc/</blog_url>
  <categories>
    <anon>STORES ネットショップ</anon>
    <anon>バックエンド</anon>
  </categories>
  <description>STORES EC本部のソフトウェアエンジニア @_morihirok です。 STORES ECではクリックジャッキングの脆弱性に対応するため、2021年の2月に他ドメインのサイトからのiframe要素などによる読み込みを制限するアップデートを行いました。 コンテンツセキュリティポリシー（以下CSP）を利用し安全にアップデートを行うことができましたので、今回はその取り組みについてご紹介させていただければと思います。 今回のアップデートに至るまでの背景 STORES ECのバックエンドはRuby on Railsで開発されています。Railsではデフォルトの設定で X-Frame-Option…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fproduct.st.inc%2Fentry%2F2021%2F06%2F24%2F104436&quot; title=&quot;CSPを利用してRailsアプリから安全にiframeを制限する - STORES Product Blog&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>2021-06-24 10:44:36</published>
  <title>CSPを利用してRailsアプリから安全にiframeを制限する</title>
  <type>rich</type>
  <url>https://product.st.inc/entry/2021/06/24/104436</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
