DEV Community

Cover image for When Lighthouse Itself Causes Issues
Mads Stoumann
Mads Stoumann

Posted on

When Lighthouse Itself Causes Issues

I was re-inspecting my homepage after some edits earlier today, and discovered — to my horror 😱 — that my perfect score was not so perfect anymore.

The Best Practices were down to 93%. Why?

After some digging, I found this post:
Lighthouse Complaining About CSP Violation

And ... it's right! If I add the unsafe-inline-entry to the styles-src of my content-security-policy, it's back at 100%.

I won't do that, of course — but interesting to notice, that Lighthouse itself can cause issues!

Top comments (1)

Collapse
 
jankapunkt profile image
Jan Küster

Thanks for finding out