lighthouse-security icon indicating copy to clipboard operation
lighthouse-security copied to clipboard

lighthouse-security/audits/csp has no meta.id property, or the property is not a string

Open Kennypt opened this issue 6 years ago • 0 comments

Trying to use lightouse security config directly on lighthouse v3.2.1 gives the following error: lighthouse-security/audits/csp has no meta.id property, or the property is not a string Missing id and title on all audits meta object return. And the same for all other audits...

Suggestion:

static get meta() {
    return {
      id: 'csp',
      title: 'Has a Content Security Policy (CSP)',
      failureTitle: 'Is missing Content Security Policy (CSP)',
      description:
        'A Content Security Policy helps prevent cross-site scripting (XSS), ' +
        'clickjacking and other code injection by whitelisting trusted resources. ' +
        '[Learn more](https://developers.google.com/web/fundamentals/security/csp/)',
      requiredArtifacts: ['CspMetaGatherer', 'ResponseHeaders'],
    };
  }

Kennypt avatar Dec 14 '18 20:12 Kennypt