Skip to content
This repository has been archived by the owner on Jan 2, 2019. It is now read-only.

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

Open
Kennypt opened this issue Dec 14, 2018 · 0 comments

Comments

@Kennypt
Copy link

Kennypt commented Dec 14, 2018

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'],
    };
  }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant