9 releases
0.2.7 | Dec 31, 2023 |
---|---|
0.2.6 | Mar 30, 2023 |
0.2.5 | Feb 6, 2023 |
0.2.4 | Sep 28, 2022 |
0.1.0 | Sep 29, 2020 |
#438 in Web programming
39 downloads per month
13KB
140 lines
CSP Generation
Whoever has had to write CSP (Content Security Policy) knows that it is no picnic. This CLI written in Rust allows you to generate CSP headers from a given url, or multiple urls.
Usage
cspgen <URL1> <URL2>...
Args:
<URL1> <URL2>... The urls to generate the CSP from
Development
git clone [email protected]:aeyoll/cspgen-rs.git
cd cspgen-rs
cargo run -- <URL1> <URL2>
Dependencies
~9–20MB
~309K SLoC