stevenvachon / broken-link-checker

Find broken links, missing images, etc within your HTML.
MIT License
1.97k stars 305 forks source link

Enhancement: Allow passing of a custom header for all requests #263

Open khawkins98 opened 10 months ago

khawkins98 commented 10 months ago

Will partly resolve https://github.com/stevenvachon/broken-link-checker/issues/212

      const siteChecker  = new SiteChecker (
        {
          customHeaders: { "my-dev-tester": "MY_SECRET" },

For our use case, this prevents the site from tipping DDOS prevention.