DEV Community

Cover image for When Lighthouse Itself Causes Issues

When Lighthouse Itself Causes Issues

madsstoumann profile image Mads Stoumann ・1 min read

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!

Discussion (1)

jankapunkt profile image
Jan Küster

Thanks for finding out

Forem Open with the Forem app