What are the security principles in angular?

Posted by Jessica Taylor | Updated on

Below are the list of security principles in angular:

  1. You should avoid direct use of the DOM APIs.
  2. You should enable Content Security Policy (CSP) and configure your web server to return appropriate CSP HTTP headers.
  3. You should Use the offline template compiler.
  4. You should Use Server Side XSS protection.
  5. You should Use DOM Sanitizer.
  6. You should Preventing CSRF or XSRF attacks.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers