summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
authorAlex Bilbie <alex.bilbie@gmail.com>2011-08-21 17:28:43 +0200
committerAlex Bilbie <alex.bilbie@gmail.com>2011-08-21 17:28:43 +0200
commit87c74c885991075cf42e9e78d7843290e2b0c3a7 (patch)
treea64fac5c0dbf3ce26b179d0901b9f1e3f47555b8 /user_guide
parentaeb2c3e532e78be9ac78ba6fd4a305b7be31d2ab (diff)
Updated Security library documentation with details on how to whitelist URIs from CSRF protection
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/libraries/security.html3
1 files changed, 3 insertions, 0 deletions
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 -->