Simple API to Log Content Security Policy Reports
Just set the LogPath in appsettings and start.
Set the two http Header like:
Content-Security-Policy-Report-Only: policy
Content-Security-Policy: default-src 'self' [further rules]; report-uri {uriOfTheAPi}/ContentSecurityPolicy
How to configure CSP look at Content Security Policy (CSP)