tag:github.com,2008:https://github.com/gorilla/csrf/releasesRelease notes from csrf2025-01-23T20:14:50Ztag:github.com,2008:Repository/40097643/v1.7.32025-04-14T02:56:35Zv1.7.3<p>This Release fixes the following:</p>
<ul>
<li><a title="CVE-2025-24358" data-hovercard-type="advisory" data-hovercard-url="/advisories/GHSA-rq77-p4h8-4crw/hovercard" href="https://github.com/advisories/GHSA-rq77-p4h8-4crw">CVE-2025-24358</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/gorilla/csrf/compare/v1.7.2...v1.7.3"><tt>v1.7.2...v1.7.3</tt></a></p>apoorvajagtaptag:github.com,2008:Repository/40097643/v1.7.22023-11-05T02:10:02ZRelease v1.7.2<h2>What's Changed</h2>
<ul>
<li>Remove pkg/errors dependency by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/husio/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/husio">@husio</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1091618422" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/161" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/161/hovercard" href="https://github.com/gorilla/csrf/pull/161">#161</a></li>
<li>Update README.md by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/coreydaley/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/coreydaley">@coreydaley</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1806148432" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/164" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/164/hovercard" href="https://github.com/gorilla/csrf/pull/164">#164</a></li>
<li>[GPT-96] Update go version & add verification/testing tools by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/apoorvajagtap/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/apoorvajagtap">@apoorvajagtap</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1819870207" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/166" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/166/hovercard" href="https://github.com/gorilla/csrf/pull/166">#166</a></li>
<li>updated licence by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/apoorvajagtap/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/apoorvajagtap">@apoorvajagtap</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1821815516" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/167" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/167/hovercard" href="https://github.com/gorilla/csrf/pull/167">#167</a></li>
<li>Update issues.yml by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/coreydaley/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/coreydaley">@coreydaley</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1827997611" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/168" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/168/hovercard" href="https://github.com/gorilla/csrf/pull/168">#168</a></li>
<li>issues/158/examples for working api with javascript frontend by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/francoposa/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/francoposa">@francoposa</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1185220499" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/162" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/162/hovercard" href="https://github.com/gorilla/csrf/pull/162">#162</a></li>
<li>updating github action workflows by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/coreydaley/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/coreydaley">@coreydaley</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1948548910" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/169" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/169/hovercard" href="https://github.com/gorilla/csrf/pull/169">#169</a></li>
<li>Updating gorilla/securecookie to v1.1.2 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/coreydaley/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/coreydaley">@coreydaley</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1977593804" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/170" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/170/hovercard" href="https://github.com/gorilla/csrf/pull/170">#170</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/husio/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/husio">@husio</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1091618422" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/161" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/161/hovercard" href="https://github.com/gorilla/csrf/pull/161">#161</a></li>
<li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/coreydaley/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/coreydaley">@coreydaley</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1806148432" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/164" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/164/hovercard" href="https://github.com/gorilla/csrf/pull/164">#164</a></li>
<li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/apoorvajagtap/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/apoorvajagtap">@apoorvajagtap</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1819870207" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/166" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/166/hovercard" href="https://github.com/gorilla/csrf/pull/166">#166</a></li>
<li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/francoposa/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/francoposa">@francoposa</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1185220499" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/162" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/162/hovercard" href="https://github.com/gorilla/csrf/pull/162">#162</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/gorilla/csrf/compare/v1.7.1...v1.7.2"><tt>v1.7.1...v1.7.2</tt></a></p>coreydaleytag:github.com,2008:Repository/40097643/v1.7.12021-07-29T17:38:45Zv1.7.1<p>v1.7.1 is a minor maintenance release. It improves documentation, and fixes a bug (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="798314090" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/149" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/149/hovercard" href="https://github.com/gorilla/csrf/pull/149">#149</a>) that caused missing tokens to not provide a clear error message back to the client.</p>
<h2>CHANGELOG</h2>
<ul>
<li>bugfix: Not providing any token in requests results in wrong error message (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="798314090" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/149" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/149/hovercard" href="https://github.com/gorilla/csrf/pull/149">#149</a>)</li>
<li>Add a note about secrecy of CSRF token in the README.md (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="906085971" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/154" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/154/hovercard" href="https://github.com/gorilla/csrf/pull/154">#154</a>) <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/maxximino/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/maxximino">@maxximino</a></li>
<li>Add note about csrf.Path option (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="759939363" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/147" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/147/hovercard" href="https://github.com/gorilla/csrf/pull/147">#147</a>) <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/karelbilek/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/karelbilek">@karelbilek</a></li>
<li>build: use build matrix; drop Go <= 1.10 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="700348430" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/142" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/142/hovercard" href="https://github.com/gorilla/csrf/pull/142">#142</a>) <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/elithrar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/elithrar">@elithrar</a></li>
<li>docs: change TrustedOrigin to TrustedOrigins in README (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="686326946" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/140" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/140/hovercard" href="https://github.com/gorilla/csrf/pull/140">#140</a>) <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mittonface/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mittonface">@mittonface</a></li>
<li>docs: add TOC to README (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="627774040" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/137" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/137/hovercard" href="https://github.com/gorilla/csrf/pull/137">#137</a>) <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/elithrar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/elithrar">@elithrar</a></li>
</ul>release-drafter[bot]tag:github.com,2008:Repository/40097643/v1.7.02020-04-26T17:53:16Zv1.7.0<p>📢 This release of <em>gorilla/csrf</em> changes the default <code>SameSite</code> cookie attribute to address changes in the SameSite spec (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="558791890" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/36990" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/36990/hovercard" href="https://github.com/golang/go/issues/36990">golang/go#36990</a>)</p>
<p><strong>Previously</strong>: The <code>SameSiteDefaultMode</code> in <em>csrf</em> (prior to v1.7.0) would set <code>SameSite</code> on the cookie, which is not valid in some browsers, notably older versions of Chrome/Android. These browsers would not set cookies with this "invalid" attribute.<br>
<strong>Now</strong>: The default mode is <code>SameSite=Lax</code>, which is <a href="https://caniuse.com/#feat=same-site-cookie-attribute" rel="nofollow">supported by Chrome v51, Firefox v60, Safari v13 and most recent browsers</a>.</p>
<p>If you're new to SameSite, read <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite" rel="nofollow">the MDN documentation</a> for a great overview on why this attribute helps prevent cookies from being 'leaked' to third-party domains unintentionally.</p>
<h2>CHANGELOG</h2>
<ul>
<li>Set SameSite=Lax by default (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="607062009" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/136" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/136/hovercard" href="https://github.com/gorilla/csrf/pull/136">#136</a>) <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/elithrar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/elithrar">@elithrar</a></li>
<li>Don't set a default samesite for backwards compatibility (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="558795265" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/132" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/132/hovercard" href="https://github.com/gorilla/csrf/pull/132">#132</a>) <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/euank/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/euank">@euank</a></li>
</ul>release-drafter[bot]tag:github.com,2008:Repository/40097643/v1.6.22019-11-21T14:29:27ZSameSite Support<h2>Notable Changes</h2>
<p>🆕 This release adds support for SameSite cookies (<a href="https://web.dev/samesite-cookies-explained/" rel="nofollow">how they work</a>), introduced in Go v1.11+, which can better scope cookies to first-party requests only (instead of just same-origin).</p>
<p>See the <a href="https://github.com/gorilla/csrf#setting-samesite">README for an example</a>.</p>
<h2>CHANGELOG</h2>
<ul>
<li>SameSite option (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="499222532" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/123" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/123/hovercard" href="https://github.com/gorilla/csrf/pull/123">#123</a>) <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tflyons/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tflyons">@tflyons</a></li>
</ul>release-drafter[bot]tag:github.com,2008:Repository/40097643/v1.6.12019-08-26T00:46:48Zv1.6.1<h2>Notable Changes</h2>
<p>🆕 This release introduces the <a href="https://godoc.org/github.com/gorilla/csrf#TrustedOrigins" rel="nofollow"><code>TrustedOrigins</code></a> option, which allows a user to explicitly trust specific Referers. This simplifies the use of this library when the backend domain (issuing the cookie) does not match the front-end domain, such as in Single Page Application architectures.</p>
<p>🐞 This release also fixes a regression to applying the default cookie MaxAge (cookies were only session cookies). This would typically have been unnoticed by most users as the CSRF middleware resets the cookie on each request.</p>
<h2>CHANGELOG</h2>
<ul>
<li>bugfix: correctly set a defaultMaxAge when MaxAge isn't called (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="484996379" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/120" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/120/hovercard" href="https://github.com/gorilla/csrf/pull/120">#120</a>) <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/elithrar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/elithrar">@elithrar</a></li>
<li>Create release-drafter.yml (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="470710935" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/118" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/118/hovercard" href="https://github.com/gorilla/csrf/pull/118">#118</a>) <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/elithrar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/elithrar">@elithrar</a></li>
<li>Add trusted origins feature (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="467966424" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/117" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/117/hovercard" href="https://github.com/gorilla/csrf/pull/117">#117</a>) <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fjorgemota/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fjorgemota">@fjorgemota</a></li>
<li>Add CircleCI status badge to README (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="460712646" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/113" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/113/hovercard" href="https://github.com/gorilla/csrf/pull/113">#113</a>) <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/elithrar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/elithrar">@elithrar</a></li>
</ul>release-drafter[bot]tag:github.com,2008:Repository/40097643/v1.6.02019-06-26T01:23:16Zv1.6.0<h3>Notable Changes</h3>
<ul>
<li>We've removed support for versions of Go prior to v1.7 - v1.6 was released over 3.5 years ago (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kisielk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kisielk">@kisielk</a> making me feel old!)</li>
<li>As a result, we've also removed <code>gorilla/context</code> as a dependency, since Go 1.7+ has its own <code>http.Request.Context()</code> implementation</li>
<li>Moved our CI to CircleCI - you can see <a href="https://circleci.com/gh/gorilla/workflows/csrf/tree/master" rel="nofollow">the build dashboard here</a></li>
</ul>
<h3>CHANGELOG</h3>
<p><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/38c9e4619f0d5d8ff3fb574fc6260901f2495776/hovercard" href="https://github.com/gorilla/csrf/commit/38c9e4619f0d5d8ff3fb574fc6260901f2495776"><tt>38c9e46</tt></a> Remove gorilla/context as part of pre-1.7 support (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="460713805" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/114" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/114/hovercard" href="https://github.com/gorilla/csrf/pull/114">#114</a>)<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/3719438df5e0d58eee6152cc5f73d2b417d279d4/hovercard" href="https://github.com/gorilla/csrf/commit/3719438df5e0d58eee6152cc5f73d2b417d279d4"><tt>3719438</tt></a> (elithrar/go-mod) [build] Add CircleCI config (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="460646769" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/112" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/112/hovercard" href="https://github.com/gorilla/csrf/pull/112">#112</a>)<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/d1620373958b3d521d88c063d1c9b678e734e9df/hovercard" href="https://github.com/gorilla/csrf/commit/d1620373958b3d521d88c063d1c9b678e734e9df"><tt>d162037</tt></a> [docs] Improve JS header/form instructions (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="389079986" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/103" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/103/hovercard" href="https://github.com/gorilla/csrf/pull/103">#103</a>)<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/40703b8c74f410f241bf24526d4b636e972deeae/hovercard" href="https://github.com/gorilla/csrf/commit/40703b8c74f410f241bf24526d4b636e972deeae"><tt>40703b8</tt></a> Update and rename stale to stale.yml (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="388957828" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/102" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/102/hovercard" href="https://github.com/gorilla/csrf/pull/102">#102</a>)<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/1db7df7cca57b74118fee1c6f442c93c1b343d5c/hovercard" href="https://github.com/gorilla/csrf/commit/1db7df7cca57b74118fee1c6f442c93c1b343d5c"><tt>1db7df7</tt></a> Merge pull request <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="388704897" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/101" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/101/hovercard" href="https://github.com/gorilla/csrf/pull/101">#101</a> from gorilla/stalebot<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/472e8526a193a66a6badc56b37fec6732f462658/hovercard" href="https://github.com/gorilla/csrf/commit/472e8526a193a66a6badc56b37fec6732f462658"><tt>472e852</tt></a> [docs] Add a "Reviewed by Hound" badge (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="380027012" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/98" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/98/hovercard" href="https://github.com/gorilla/csrf/pull/98">#98</a>)<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/abcfd258958b0f4a4a4eda0f9db1cd132295eadf/hovercard" href="https://github.com/gorilla/csrf/commit/abcfd258958b0f4a4a4eda0f9db1cd132295eadf"><tt>abcfd25</tt></a> (origin/stalebot) Add stalebot config<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/f903b4ea4d6056635620f6f39e930528b97f9a55/hovercard" href="https://github.com/gorilla/csrf/commit/f903b4ea4d6056635620f6f39e930528b97f9a55"><tt>f903b4e</tt></a> README.md: Update site URL<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/10bfafc91ef1c8d20ea9d015720365906b7f3fbd/hovercard" href="https://github.com/gorilla/csrf/commit/10bfafc91ef1c8d20ea9d015720365906b7f3fbd"><tt>10bfafc</tt></a> [docs] Note that developers should check the HTTP method (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="334235609" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/91" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/91/hovercard" href="https://github.com/gorilla/csrf/pull/91">#91</a>)<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/d69028034505973d02c6f66343bd9da766062d8e/hovercard" href="https://github.com/gorilla/csrf/commit/d69028034505973d02c6f66343bd9da766062d8e"><tt>d690280</tt></a> Merge pull request <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="330501516" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/88" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/88/hovercard" href="https://github.com/gorilla/csrf/pull/88">#88</a> from gorilla/elithrar/corporate-overlords</p>elithrartag:github.com,2008:Repository/40097643/v1.5.12018-05-22T06:17:56Zv1.5.1<p>gorilla/csrf defines a <code>go.mod</code> file and correctly defines a SemVer version (<code>v1.5.1</code>) to support versioning in upcoming releases of Go.</p>elithrartag:github.com,2008:Repository/40097643/v1.52017-01-08T19:57:01Zv1.5<p>Uses the new request.Context from Go 1.7 for Go 1.7 automatically. Note that <a href="https://github.com/gorilla/context">gorilla/context</a> is incompatible with Go 1.7.</p>
<p><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/69581736821c33d85bbf378f42f6ad864dbd85de/hovercard" href="https://github.com/gorilla/csrf/commit/69581736821c33d85bbf378f42f6ad864dbd85de"><tt>6958173</tt></a> [doc] Fixed readme mux path prefix (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="184817997" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/51" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/51/hovercard" href="https://github.com/gorilla/csrf/pull/51">#51</a>)<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/10e8fd1f4e34acff5875a9aed9fd34bbd181e3e7/hovercard" href="https://github.com/gorilla/csrf/commit/10e8fd1f4e34acff5875a9aed9fd34bbd181e3e7"><tt>10e8fd1</tt></a> [docs] Fix a few minor typos in examples. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="191038290" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/54" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/54/hovercard" href="https://github.com/gorilla/csrf/pull/54">#54</a>)<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/fdae182b1882857ae6a246467084c30af79be824/hovercard" href="https://github.com/gorilla/csrf/commit/fdae182b1882857ae6a246467084c30af79be824"><tt>fdae182</tt></a> docs: fix minor typo (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="184699886" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/50" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/50/hovercard" href="https://github.com/gorilla/csrf/pull/50">#50</a>)<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/7f54448f9190a1f217e867373b87ce5c987b1b98/hovercard" href="https://github.com/gorilla/csrf/commit/7f54448f9190a1f217e867373b87ce5c987b1b98"><tt>7f54448</tt></a> [docs] Fix incorrect function name in docs (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="183113889" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/49" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/49/hovercard" href="https://github.com/gorilla/csrf/pull/49">#49</a>)<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/bbe668740d1d0d07e117e840a4b704e06e719da7/hovercard" href="https://github.com/gorilla/csrf/commit/bbe668740d1d0d07e117e840a4b704e06e719da7"><tt>bbe6687</tt></a> [docs] Fix syntax typo (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="180493338" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/48" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/48/hovercard" href="https://github.com/gorilla/csrf/pull/48">#48</a>)<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/0ff6a2ce414a64d341b00a78fd83afec5baa1146/hovercard" href="https://github.com/gorilla/csrf/commit/0ff6a2ce414a64d341b00a78fd83afec5baa1146"><tt>0ff6a2c</tt></a> [docs] Improve commented code (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="179251215" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/46" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/46/hovercard" href="https://github.com/gorilla/csrf/pull/46">#46</a>)<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/a8abe8abf66db8f4a9750d76ba95b4021a354757/hovercard" href="https://github.com/gorilla/csrf/commit/a8abe8abf66db8f4a9750d76ba95b4021a354757"><tt>a8abe8a</tt></a> [docs] Mentions passing csrf.Secure(false) in local dev environments.<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/a9c30aea0c8079c6d335982cbe07d7bafe0b57b7/hovercard" href="https://github.com/gorilla/csrf/commit/a9c30aea0c8079c6d335982cbe07d7bafe0b57b7"><tt>a9c30ae</tt></a> [bugfix] Remove dependency on gorilla/context for go1.7+ (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="166702546" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/42" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/42/hovercard" href="https://github.com/gorilla/csrf/pull/42">#42</a>)<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/4642ecf016ef548770875073f867ea02b4385f69/hovercard" href="https://github.com/gorilla/csrf/commit/4642ecf016ef548770875073f867ea02b4385f69"><tt>4642ecf</tt></a> [bugfix] Support a cookie MaxAge of 0. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="159846523" data-permission-text="Title is private" data-url="https://github.com/gorilla/csrf/issues/39" data-hovercard-type="pull_request" data-hovercard-url="/gorilla/csrf/pull/39/hovercard" href="https://github.com/gorilla/csrf/pull/39">#39</a>)<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/101aaa4f0bf7fca85a91c2d489146bbf9b1d5aac/hovercard" href="https://github.com/gorilla/csrf/commit/101aaa4f0bf7fca85a91c2d489146bbf9b1d5aac"><tt>101aaa4</tt></a> Merge branch 'master' of github.com:gorilla/csrf<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/2a06c32e26675f74909d92c5d718f173bad866e3/hovercard" href="https://github.com/gorilla/csrf/commit/2a06c32e26675f74909d92c5d718f173bad866e3"><tt>2a06c32</tt></a> [ci] Add 1.6; skip install block; don't simplify.<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/0bb4971d4d6767de1a67d0d5a3b6f24c2efc571a/hovercard" href="https://github.com/gorilla/csrf/commit/0bb4971d4d6767de1a67d0d5a3b6f24c2efc571a"><tt>0bb4971</tt></a> [deps] Move from errors -> github.com/pkg/errors<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gorilla/csrf/commit/dd1bce8f03f0327921c3a7fa1f45bb8e9e1915b0/hovercard" href="https://github.com/gorilla/csrf/commit/dd1bce8f03f0327921c3a7fa1f45bb8e9e1915b0"><tt>dd1bce8</tt></a> [deps] Move from errors -> github.com/pkg/errors</p>elithrartag:github.com,2008:Repository/40097643/v1.42016-06-02T03:55:41Zv1.4 <ul>
<li>With Go 1.7's <code>net/http</code> package growing <a href="https://tip.golang.org/doc/go1.7#context" rel="nofollow">support for context.Context</a> as part of <code>http.Request</code>, gorilla/csrf now uses the context to pass CSRF tokens and other metadata alongside the request instead of gorilla/context.</li>
<li>NOTE: There is a minor breaking change with <a href="https://godoc.org/github.com/gorilla/csrf#UnsafeSkipCheck" rel="nofollow"><code>UnsafeSkipCheck</code></a> - it now returns a <code>*http.Request</code>. Existing applications will "fail closed" (i.e. CSRF will be enforced again). Since this was a relatively new feature (less than a week old) the impact of this should be very minor.</li>
</ul>elithrar