In order to use Content-Security-Policy (CSP) response headers with Information Centric Analytics (ICA), the procedure provided in the Resolution of this document must first be implemented.
Per Mozilla:
HTTP Content-Security-Policy (CSP) response header allows web site administrators to control resources the user agent is allowed to load for a given page. With a few exceptions, policies mostly involve specifying server origins and script endpoints. This helps guard against cross-site scripting attacks.
Release : 6.5.x
Component : IIS
The following procedure will enable the use of CSP headers with ICA. We recommend first testing this procedure in a development environment. To implement, follow this procedure:
USE RiskFabric;
GO
MERGE dbo.PortalSettings TARGET
USING (VALUES
('CorsEnabled', '1', 'bool'),
('CorsOrigins', 'http://localhost:80', 'string'),
('CorsHeaders', 'Accept, Content-Type, X-Requested-With', 'string'),
('CorsMethods', 'GET, POST, OPTIONS', 'string')
) AS SOURCE (Name, Value, ValueType) ON (TARGET.Name = SOURCE.Name)
WHEN NOT MATCHED THEN INSERT (Name, Value, ValueType) VALUES (SOURCE.Name, SOURCE.Value, SOURCE.ValueType)
WHEN MATCHED THEN UPDATE SET Value = SOURCE.Value;