When using ej2 JavaScript components with a strict Content-Security-Policy (CSP)
mode enabled, some browser features are disabled. Since we’re using the following browser features, they are disabled by default.
font-src data:
in the meta tag.Roboto’s external font
, which is also blocked. To allow them style-src ‘self’ unsafe-inline
must be included in the meta tag.script-src ‘self’ unsafe-eval
in the meta tag for enabling.The following resultant meta tag is required to overcome the CSP violation at the application side while using Syncfusion components.
<meta http-equiv="Content-Security-Policy" content="default-src 'none';
script-src 'self' 'unsafe-eval';
style-src 'self' https://fonts.googleapis.com/ ‘unsafe-inline’;
font-src 'self' https://fonts.googleapis.com/ https://fonts.gstatic.com/ data: cdn.syncfusion.com 'unsafe-inline'; />