github.com/gorilla/csrf
v1.7.3
#1957 most downloaded on Go modules
gorilla/csrf
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 1 weeks to 1.2 years
Most releases are documented
notes for 7 of 10 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
73 releases · first in 2015
0 releases in the last 12 months
see the full history below
Release timeline
73 releases · Aug 2015 to Jan 2025Releases
latest 60 of 73-
v1.7.323 Jan 2025Release notes
Open source → -
v1.7.3-0.20250123201450-9dd6af1f6d3023 Jan 2025 pre-releaseNothing published for this version
-
v1.7.205 Nov 2023Release notes
Open source →What's Changed
- Remove pkg/errors dependency by @husio in #161
- Update README.md by @coreydaley in #164
- [GPT-96] Update go version & add verification/testing tools by @apoorvajagtap in #166
- updated licence by @apoorvajagtap in #167
- Update issues.yml by @coreydaley in #168
- issues/158/examples for working api with javascript frontend by @francoposa in #162
- updating github action workflows by @coreydaley in #169
- Updating gorilla/securecookie to v1.1.2 by @coreydaley in #170
New Contributors
- @husio made their first contribution in #161
- @coreydaley made their first contribution in #164
- @apoorvajagtap made their first contribution in #166
- @francoposa made their first contribution in #162
Full Changelog: v1.7.1...v1.7.2
-
v1.7.2-0.20231105020839-a0097435724905 Nov 2023 pre-releaseNothing published for this version
-
v1.7.2-0.20231018114527-94b5a9efbc2718 Oct 2023 pre-releaseNothing published for this version
-
v1.7.2-0.20230725193743-15d47eceb8d525 Jul 2023 pre-releaseNothing published for this version
-
v1.7.2-0.20230715144940-04cc5dba5dd015 Jul 2023 pre-releaseNothing published for this version
-
v1.7.2-0.20221209161023-93379db1992f09 Dec 2022 pre-releaseNothing published for this version
-
v1.7.2-0.20220121111802-e40f2349c64521 Jan 2022 pre-releaseNothing published for this version
-
v1.7.129 Jul 2021Release notes
Open source →v1.7.1 is a minor maintenance release. It improves documentation, and fixes a bug (#149) that caused missing tokens to not provide a clear error message back to the client.
CHANGELOG
- bugfix: Not providing any token in requests results in wrong error message (#149)
- Add a note about secrecy of CSRF token in the README.md (#154) @maxximino
- Add note about csrf.Path option (#147) @karelbilek
- build: use build matrix; drop Go <= 1.10 (#142) @elithrar
- docs: change TrustedOrigin to TrustedOrigins in README (#140) @mittonface
- docs: add TOC to README (#137) @elithrar
-
v1.7.1-0.20210528222427-c61da383cc1828 May 2021 pre-releaseNothing published for this version
-
v1.7.1-0.20210411134123-46c01904ff6c11 Apr 2021 pre-releaseNothing published for this version
-
v1.7.1-0.20200912192721-9565ae2856dc12 Sep 2020 pre-releaseNothing published for this version
-
v1.7.1-0.20200826133805-d1ee07fb166e26 Aug 2020 pre-releaseNothing published for this version
-
v1.7.1-0.20200530170000-4be14634cc8530 May 2020 pre-releaseNothing published for this version
-
v1.7.026 Apr 2020Release notes
Open source →📢 This release of gorilla/csrf changes the default
SameSitecookie attribute to address changes in the SameSite spec (see golang/go#36990)Previously: The
SameSiteDefaultModein csrf (prior to v1.7.0) would setSameSiteon 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.
Now: The default mode isSameSite=Lax, which is supported by Chrome v51, Firefox v60, Safari v13 and most recent browsers.If you're new to SameSite, read the MDN documentation for a great overview on why this attribute helps prevent cookies from being 'leaked' to third-party domains unintentionally.
CHANGELOG
-
v1.6.208 Oct 2019Nothing published for this version
-
v1.6.2-0.20191008022326-4b50158aba1b08 Oct 2019 pre-releaseNothing published for this version
-
v1.6.126 Aug 2019Release notes
Open source →Notable Changes
🆕 This release introduces the
TrustedOriginsoption, 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.🐞 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.
CHANGELOG
-
v1.6.1-0.20190720201952-a7479e757eab20 Jul 2019 pre-releaseNothing published for this version
-
v1.6.1-0.20190720201729-5050f9cc5be620 Jul 2019 pre-releaseNothing published for this version
-
v1.6.1-0.20190626012333-9b0e3acb4f7926 Jun 2019 pre-releaseNothing published for this version
-
v1.6.026 Jun 2019Release notes
Open source →Notable Changes
- We've removed support for versions of Go prior to v1.7 - v1.6 was released over 3.5 years ago (@kisielk making me feel old!)
- As a result, we've also removed
gorilla/contextas a dependency, since Go 1.7+ has its ownhttp.Request.Context()implementation - Moved our CI to CircleCI - you can see the build dashboard here
CHANGELOG
38c9e46 Remove gorilla/context as part of pre-1.7 support (#114)
3719438 (elithrar/go-mod) [build] Add CircleCI config (#112)
d162037 [docs] Improve JS header/form instructions (#103)
40703b8 Update and rename stale to stale.yml (#102)
1db7df7 Merge pull request #101 from gorilla/stalebot
472e852 [docs] Add a "Reviewed by Hound" badge (#98)
abcfd25 (origin/stalebot) Add stalebot config
f903b4e README.md: Update site URL
10bfafc [docs] Note that developers should check the HTTP method (#91)
d690280 Merge pull request #88 from gorilla/elithrar/corporate-overlords -
v1.5.2-0.20190626011022-3719438df5e026 Jun 2019 pre-releaseNothing published for this version
-
v1.5.2-0.20181210000252-d1620373958b10 Dec 2018 pre-releaseNothing published for this version
-
v1.5.2-0.20181012153437-f903b4ea4d6012 Oct 2018 pre-releaseNothing published for this version
-
v1.5.2-0.20180620203027-10bfafc91ef120 Jun 2018 pre-releaseNothing published for this version
-
v1.5.2-0.20180608135259-d6902803450508 Jun 2018 pre-releaseNothing published for this version
-
v1.5.122 May 2018Release notes
Open source →gorilla/csrf defines a
go.modfile and correctly defines a SemVer version (v1.5.1) to support versioning in upcoming releases of Go. -
v1.0.3-0.20170912155303-8aae08ff9fb912 Sep 2017 pre-releaseNothing published for this version
-
v1.0.3-0.20170809183922-8b1b43bb826009 Aug 2017 pre-releaseNothing published for this version
-
v1.0.3-0.20170606230813-c5a2560016c206 Jun 2017 pre-releaseNothing published for this version
-
v1.0.3-0.20170420015430-e6dca6753d9220 Apr 2017 pre-releaseNothing published for this version
-
v1.0.3-0.20170324141126-0790a828259124 Mar 2017 pre-releaseNothing published for this version
-
v1.0.3-0.20161122164500-69581736821c22 Nov 2016 pre-releaseNothing published for this version
-
v1.0.3-0.20161122164342-10e8fd1f4e3422 Nov 2016 pre-releaseNothing published for this version
-
v1.0.3-0.20161023170907-fdae182b188223 Oct 2016 pre-releaseNothing published for this version
-
v1.0.3-0.20161002180012-bbe668740d1d02 Oct 2016 pre-releaseNothing published for this version
-
v1.0.3-0.20160926154116-0ff6a2ce414a26 Sep 2016 pre-releaseNothing published for this version
-
v1.0.3-0.20160901055816-a8abe8abf66d01 Sep 2016 pre-releaseNothing published for this version
-
v1.0.3-0.20160721043629-a9c30aea0c8021 Jul 2016 pre-releaseNothing published for this version
-
v1.0.3-0.20160612205039-4642ecf016ef12 Jun 2016 pre-releaseNothing published for this version
-
v1.0.3-0.20160602165904-0bb4971d4d6702 Jun 2016 pre-releaseNothing published for this version
-
v1.0.3-0.20160602035145-50eb875b7d3702 Jun 2016 pre-releaseNothing published for this version
-
v1.0.3-0.20160414155925-58276522e58714 Apr 2016 pre-releaseNothing published for this version
-
v1.0.3-0.20160414154100-0c14fb7a6acf14 Apr 2016 pre-releaseNothing published for this version
-
v1.0.3-0.20160226212210-7d028c18717326 Feb 2016 pre-releaseNothing published for this version
-
v1.0.3-0.20151130014503-5af66915267330 Nov 2015 pre-releaseNothing published for this version
-
v1.0.3-0.20151112000310-cdcc3244878a12 Nov 2015 pre-releaseNothing published for this version
-
v1.0.3-0.20151027205814-f6d7c0f720c627 Oct 2015 pre-releaseNothing published for this version
-
v1.0.3-0.20151026114943-30989f40779d26 Oct 2015 pre-releaseNothing published for this version
-
v1.0.3-0.20150916000504-10de59347f8916 Sep 2015 pre-releaseNothing published for this version
-
v1.0.226 Aug 2015Nothing published for this version
-
v1.0.2-0.20150809075724-4a4cf75876fd09 Aug 2015 pre-releaseNothing published for this version
-
v1.0.105 Aug 2015Nothing published for this version
-
v0.0.0-20250123201450-9dd6af1f6d3023 Jan 2025 pre-releaseNothing published for this version
-
v0.0.0-20231105020839-a0097435724905 Nov 2023 pre-releaseNothing published for this version
-
v0.0.0-20220121111802-e40f2349c64521 Jan 2022 pre-releaseNothing published for this version
-
v0.0.0-20190626012333-9b0e3acb4f7926 Jun 2019 pre-releaseNothing published for this version
-
v0.0.0-20181210000252-d1620373958b10 Dec 2018 pre-releaseNothing published for this version