github.com/kr/secureheader
Package secureheader adds some HTTP header fields widely considered to improve safety of HTTP requests. These fields are documented as follows: The easiest way to use this package: DefaultConfig is initialized with conservative (safer and more restrictive) behavior. If you want to change that, set its fields to different values before calling ListenAndServe. See the example code below. This package was inspired by Twitter's secureheaders Ruby library. See https://github.com/twitter/secureheaders.
Ecosystem
proxy.golang.org
proxy.golang.org
Latest Release
over 7 years ago
v0.2.0
over 7 years ago
Versions
2
2
Dependent Packages
9
9
Dependent Repos
11
11
Loading...
Readme
Loading...
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/kr/secureheader
spec |
| License | MIT |
| Namespace | github.com/kr |
| First Release | almost 8 years ago |
| Last Synced | 13 days ago |
Rankings on proxy.golang.org
Overall
Top 3.0%
Dependent packages
Top 1.7%
Dependent repos
Top 1.6%
Forks
Top 5.6%
Docker downloads
Top 1.8%