CSP
IdentityServer incorporates the use of Content Security Policy (CSP) for all HTML pages displayed.
CspOptions
IdentityServer3 allows the hosting application to configure a CspOptions on the IdentityServerOptions to control the CSP behavior. Below are the settings that are configurable:
Enabled: indicates if CSP is enabled or disabled. Defaults totrue.ScriptSrc: allows for additionalscript-srcvalues to be added to the default policy.StyleSrc: allows for additionalstyle-srcvalues to be added to the default policy.FontSrc: allows for additionalfont-srcvalues to be added to the default policy.ConnectSrc: allows for additionalconnect-srcvalues to be added to the default policy.ImgSrc: allows for additionalimg-srcvalues to be added to the default policy.FrameSrc(added in v2.4) : allows for additionalframe-srcvalues to be added to the default policy.
CSP allows for a reporting endpoint to be configured. IdentityServer provides a CSP report endpoint which is described here.