stevenvachon / broken-link-checker

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

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

Open khawkins98 opened 8 months ago

khawkins98 commented 8 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.