How to: Enable Content Security Policy for Release

Question

How to enable the Content Security Policy for Release?

Answer

This is a new feature available from Release version 23.1.0 and can be enabled on xl-release.conf (under xl.server.http).

It is disabled by default.

Steps to Follow

  1. Edit <Release_Home>/conf/xl-release.conf and add the following under xl.server.http

Sample Snippet:

xl.server.http {
csp {
    enabled = true
    policyDirectives = "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'
app.pendo.io pendo-io-static.storage.googleapis.com cdn.pendo.io pendo-static-
5636088155078656.storage.googleapis.com data.pendo.io code.jquery.com; style-src 'self'
'unsafe-inline' app.pendo.io cdn.pendo.io pendo-static-5636088155078656.storage.googleapis.
com; font-src 'self' data: blob: 'unsafe-inline'; img-src 'self' data: blob: app.pendo.io
cdn.pendo.io pendo-static-5636088155078656.storage.googleapis.com data.pendo.io; connect-src
'self' app.pendo.io data.pendo.io pendo-static-5636088155078656.storage.googleapis.com;
frame-src 'self' app.pendo.io; frame-ancestors 'self' app.pendo.io; child-src 'self'
app.pendo.io;" } }

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.