summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
authorEric Barnes <eric@ericlbarnes.com>2011-08-25 05:19:49 +0200
committerEric Barnes <eric@ericlbarnes.com>2011-08-25 05:19:49 +0200
commitc696253dd044fc8d7de5acf835a9d1a6c144e0b3 (patch)
tree74e9c60a2eceb9386c04b3cf13ae6863b56863e1 /user_guide
parent0ba26c731cf8838b5239c1a7957bc18f58fe2f7d (diff)
parent6a93995f2a24c0ac8d636ecac5f3eb0d0243e23d (diff)
Merge remote-tracking branch 'alexbilbie/csrf-override' into feature/csrf-verify
Conflicts: system/core/Security.php
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/changelog.html1
-rw-r--r--user_guide/libraries/security.html3
2 files changed, 4 insertions, 0 deletions
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index 91312e46b..7c9ee07a4 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -126,6 +126,7 @@ Change Log
<li>Visual updates to the welcome_message view file and default error templates. Thanks to <a href="https://bitbucket.org/danijelb">danijelb</a> for the pull request.</li>
<li class="reactor">Added <samp>insert_batch()</samp> function to the PostgreSQL database driver. Thanks to epallerols for the patch.</li>
<li class="reactor">Added "application/x-csv" to mimes.php.</li>
+ <li class="reactor">Added CSRF protection URI whitelisting.</li>
<li>Fixed a bug where <a href="libraries/email.html">Email library</a> attachments with a "." in the name would using invalid MIME-types.</li>
<li>Added support for pem,p10,p12,p7a,p7c,p7m,p7r,p7s,crt,crl,der,kdb,rsa,cer,sst,csr Certs to mimes.php.</li>
<li>Added support pgp,gpg to mimes.php.</li>
diff --git a/user_guide/libraries/security.html b/user_guide/libraries/security.html
index dd62a4386..cbe12d852 100644
--- a/user_guide/libraries/security.html
+++ b/user_guide/libraries/security.html
@@ -116,6 +116,9 @@ Note: This function should only be used to deal with data upon submission. It's
<p>If you use the <a href="../helpers/form_helper.html">form helper</a> the <var>form_open()</var> function will automatically insert a hidden csrf field in your forms.</p>
+<p>Select URIs can be whitelisted from csrf protection (for example API endpoints expecting externally POSTed content). You can add these URIs by editing the 'csrf_exclude_uris' config parameter:</p>
+<code>$config['csrf_exclude_uris'] = array('api/person/add');</code>
+
</div>
<!-- END CONTENT -->