This site uses cookies for analytics. By continuing to browse this site, you agree to this use.
A JS Foundation Project

Ignoring domains

Ignoring domains

Sometimes you don’t have control over all the infrastructure and there is nothing you can do about it. Reporting errors in those cases generates noise and frustration. Instead of globally disabling a hint you might want to turn it off for a domain, or directly ignore completely one (like a third party analytics, ads, etc.). To achieve this you need to add the ignoredUrls property to your .hintrc file:

"ignoredUrls": [{
"domain": ".*\\.domain1\\.com/.*",
"hints": ["*"]
}, {
"domain": "",
"hints": ["disallowed-headers"]

Properties can be:

  • regular expressions, like .*\\.domain1\\.com/.*. This will match:
  • some text, like In this case, if the resource URL contains the text, it will be a match. E.g.:

The value of the property has to be an array of strings where the strings can be:

  • * if you want to ignore all hints for the given domain.
  • The ID of the hint to be ignored.

In the previous example we will:

  • Ignore all hints for any resource that matches the regex .*\\.domain1\\.com/.*.
  • Ignore the hint disallowed-headers for the domain