AngularJS ng-csp Directive
The AngularJS ng-csp directive is used to break certain CSP (Content Security Policy) rules. It changes the security policy of AngularJS.
AngularJS containing ng-csp directive set will not run any eval functions, and it will not inject any inline styles. The following rules affect AngularJS:
no-unsafe-eval: Its value can be empty, means eval or inline styles are not allowed.
no-inline-style: The value can be one of the two values described.The value can be both values, separated by a semicolon, but that will have the same meaning as an empty value.
Let's take an example to demonstrate ng-csp directive.
See this example:Test it Now
Next TopicAngularJS ng-cut Directive