An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/empijei/go-sec-fetch

Package secfetch implements a simple middleware to protect HTTP handlers from cross-origin requests by leveraging Fetch Metadata. Suggested usage is to protect the entire http.Server.Handler and not single handlers. Example usage: This package supports a log-only mode to ease deployment and test the configuration before enforcing it. It is possible to exempt some handlers by registering them on a http.ServeMux after a previous one has been protected. A use case for this is CORS APIs that need to reply to cross-site requests. Example:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/empijei/go-sec-fetch
License: Apache-2.0
Latest release: over 5 years ago
First release: about 6 years ago
Namespace: github.com/empijei
Stars: 11 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 13 days ago

    Loading...
    Readme
    Loading...