Skip to main content
Transform your testing process with: Company-wide Licences, Test Observability & App Percy

Disable CSP for precise screenshots

Learn how to use percyScreenshot for CSP enabled websites.

Content Security Policy (CSP) is a browser security feature that restricts the loading of external resources on a webpage to prevent potential security vulnerabilities.

To ensure that percyScreenshot can capture accurate and complete screenshots, it is necessary to temporarily disable CSP. When taking screenshots, certain external resources are required, and disabling CSP facilitates the proper functioning of percyScreenshot.

Once the screenshots are taken, it is advisable to re-enable CSP to maintain the overall security of the website.

Reference Topic

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback!

Talk to an Expert
Download Copy