Added CSP checks

Added CSP checks for unsafe implementations.