<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cakephper</author_name>
  <author_url>https://blog.hatena.ne.jp/cakephper/</author_url>
  <blog_title>cakephperの日記(CakePHP, Laravel, PHP)</blog_title>
  <blog_url>https://cakephper.hatenadiary.org/</blog_url>
  <categories>
    <anon>cakePHP</anon>
    <anon>cakephp2</anon>
  </categories>
  <description>CakePHP1のセキュリティコンポーネントは、CSRF対策と、フォーム改竄対策がセットであるため、例えばjavascriptで動的にフォームなどを追加するとチェックに引っかかります。CakePHP2からは、CSRF対策とフォーム改竄対策がそれぞれオプションでOFFにできます（デフォルトではどちらも有効） CSRF対策のみ行いたい場合は、コントローラのコンポーネント指定でvalidatePostをfalseにします。 public $components = array( 'Security' =&gt; array('validatePost' =&gt; false), ); 動的にON/OFFを切り…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcakephper.hatenadiary.org%2Fentry%2F20120204%2F1328281332&quot; title=&quot; CakePHP2のセキュリティコンポーネントでCSRF対策のみ行う - cakephperの日記(CakePHP, Laravel, PHP)&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>2012-02-04 00:02:12</published>
  <title> CakePHP2のセキュリティコンポーネントでCSRF対策のみ行う</title>
  <type>rich</type>
  <url>https://cakephper.hatenadiary.org/entry/20120204/1328281332</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
