Skip to content

🧰 utility to generate valid domains for CSP rules

Notifications You must be signed in to change notification settings

0xleozera/generate-csp-domains

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Domains to CSP

Get the domains used for your site and generate the CSP (Content Security Policy) header

Install

  1. Install the deps
yarn
# or
npm install
  1. Run the code
yarn start
# or
npm run start

Usage

  1. First you'll need the HAR (Http Archive Content) file of your website.
  2. Learn how to download file by following this tutorial. Click here.
  3. Put the HAR file into the root directory of project.
  4. Rename HAR file to source.har
  5. Run yarn start
  6. Get your CSP config in csp.txt

Refs

About

🧰 utility to generate valid domains for CSP rules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published