• Home
  • Demo
  • Buy Now
RISE - Ultimate Project Manager & CRM
    RISE - Ultimate Project Manager & CRMInstallation & MaintenancePersonalizationSettingsClient ManagementAI AssistantInvoices & PaymentsProjects & TasksTeam & CollaborationProductivity ToolsSales & ServicesRISE ReportsPluginsFAQChange logs
Mailbox PluginLanding Page Builder PluginEasy Backup PluginSquare Payment Method PluginLogin as Client PluginAsset Management Plugin2 Factor Authentication PluginPassword Manager PluginSocial Login PluginGoogle Meet Integration PluginSpreadsheets PluginZoom Integration PluginAuto Attendance PluginWhiteboards PluginDocs PluginBlog Manager PluginWhatsApp Link PluginMicrosoft Teams Integration PluginProperty Management PluginTelegram Notification PluginAWS S3 Integration PluginWhatsApp Notification PluginWasabi Integration PluginBackblaze Integration PluginCloudflare R2 Integration PluginDigitalOcean Spaces Integration PluginAdyen Payment Method PluginbKash Payment Method Pluginiyzico Payment Method PluginJazzCash Payment Method PluginMercado Pago Payment Method PluginMidtrans Payment Method PluginMontonio Payment Method PluginN-Genius Payment Method PluginNagad Payment Method PluginPayFast Payment Method PluginPaysera Payment Method PluginPaystack Payment Method PluginPix Payment Method PluginRazorpay Payment Method PluginRocket Payment Method PluginSSLCommerz Payment Method PluginUPI Payment Method PluginUpay Payment Method PluginXendit Payment Method Plugin
  1. Docs
  2. RISE - Ultimate Project Manager & CRM
  3. Installation & Maintenance

Enable content security policy (CSP)

Content Security Policy (CSP) is a security feature that helps protect your application against cross-site scripting (XSS), clickjacking, and other code injection attacks by specifying which sources of content are trusted. When enabled, the browser blocks or reports any resource (like scripts, styles, images, etc.) that violates your defined policy.


Why CSP is Important?

Without CSP, any malicious script included in your page—via user input, browser plugin vulnerabilities, or third-party libraries—can execute freely. CSP adds a layer of defense by limiting the sources from which content can be loaded.


How to Enable CSP?

Edit the app/Config/App.php file and set the following property to true:

public $CSPEnabled = true;

Configure Your CSP Rules

RISE already includes predefined CSP rules that allow core scripts, styles, fonts, and other internal resources required for the application to run correctly.

Important: If you are using any third-party plugins, custom scripts, or loading external assets (CDNs, fonts, analytics, etc.), you must explicitly allow them in the CSP configuration.


To customize CSP rules, edit: app/Config/ContentSecurityPolicy.php and update the required config values.

Example:

If you want to allow YouTube iframe content, and Google Analytics, set the following values:

public $scriptSrc = ['self', 'https://www.google-analytics.com/', 'https://www.googletagmanager.com/'];
public $imageSrc = ['self', 'https://www.google-analytics.com/', 'https://www.googletagmanager.com/', 'https://www.youtube.com/'];
public $connectSrc = ['self', 'https://www.google-analytics.com/'];
public $frameSrc = ['self', "https://www.youtube.com/"];

If something stops loading or behaving unexpectedly after enabling CSP, check the browser console (DevTools → Console tab). The browser will show warnings or errors when a resource is blocked due to CSP.

Only add sources you trust. Adding unknown or unsafe sources can reduce your website’s security and create risks.


Was this article helpful? Yes No
How can we improve this article?
© 2026 Fairsketch
Home Get Support Buy Now

Delete?

Are you sure? You won't be able to undo this action!
To do