Picto thématique

Rule n° 207 - The website offers a security mechanism that limits the sources of its content.

The server sends a page containing various elements (JavaScript files, CSS, webfonts, etc.) to the browser, which will download and display everything as quickly and efficiently as possible... without questioning the legitimacy of what it is doing. The system called Content Security Policy allows the browser to indicate rules regarding the origin of this content. This makes it possible to determine exactly what it is allowed to execute or display, and thus increases security for users.

#Security #Development


  • Reduce the risk of executing or serving content that is undesirable or that comes from an unauthorized source.


Enable the Content-Security-Policy HTTP header with the appropriate CSP 1 directives:
  • img-src for images


  • script-src for JavaScript

    By Opquast - Read the license

    Business application and benefits

    The rules should be applied to your projects from the design phase through to post-implementation , and they should be understood by all professionals with web and customer experience (CX) responsibilities: from strategy to operations, marketers to project managers, and editorial to technical staff. The benefits of using this ruleset are numerous, including improving customer satisfaction, web performance, and e-commerce, and expanding your client base, while also decreasing your errors and costs.

    Multidisciplinary verticles - accessiiblity, SEO, e-commerce, ecodesign etc..- starting from the foundational Opquast base.

    The objective of these rules and the Opquast community mission is ‘making the web better’ for your customers and for everyone! Opquast rules cover the key major areas of risk that can negatively affect website users such as privacy, ecodesign, accessibility and security.

    Opquast training has already allowed over 11,000 web professionals to have their skills certified. Train your teams or your students, contact us