87da9a948b
Add ReferrerPolicy to Secure middleware ( #1363 )
2019-08-01 15:27:09 -07:00
5434a5392f
Enable adding preload
tag to HSTS header ( #1247 )
2019-03-06 10:22:19 -08:00
802fb5bba6
feat(secure): support Content-Security-Policy-Report-Only header ( #1287 )
...
Closes #1283
2019-02-26 22:32:07 -08:00
6d9e043284
Introduced Go module support as v4, removed obsolete CloseNotifier() mechanism
...
This reintroduces support for Go modules, as v4.
CloseNotifier() is removed as it has been obsoleted, see https://golang.org/doc/go1.11#net/http
It was already NOT working (not sending signals) as of 1.11 the functionality was gone, we merely
deleted the functions that exposed it. If anyone still relies on it they should migrate to using
`c.Request().Context().Done()` instead.
Closes #1268 , #1255
2019-01-30 16:11:42 +02:00
da083ffd0a
Implemented rewrite middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2017-12-28 11:26:50 -08:00
52fa135fd5
Updated docs, exposed middleware.DefaultSkipper
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2017-01-28 11:46:43 -08:00
2aec0353f5
First commit to v3, #665
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2016-09-22 22:56:00 -07:00
3d9d408365
Options for redirect middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2016-08-31 20:10:14 -07:00
27f9b326b8
Ability to skip a middleware via callback
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2016-07-27 09:34:44 -07:00
7e52ad4dd5
Changes to jwt and csrf middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2016-05-26 14:08:02 -07:00
c6b32d5541
Added json tags to middleware config
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2016-05-18 18:53:54 -07:00
98dd8bf9e9
Added CSRF middleware, #341 .
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2016-05-12 17:45:00 -07:00
1afaa6ec0b
Updated docs, changes to static middleware config
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2016-05-10 11:52:04 -07:00
d81956058e
Update README with secure middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2016-05-03 11:42:42 -07:00
6424d779dc
Added test for secure middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2016-05-03 08:32:28 -07:00
f0526349ff
Fixed #499
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2016-05-02 22:41:07 -07:00
e2faa6c2be
middleware: add basic secure headers
2016-04-28 14:12:57 +08:00