1.

What Are The Security Threats Should We Be Aware Of In Angular 2 Application?

Answer»

Just LIKE any other client side or web application, angular 2 application should also follow some of the BASIC guidelines to mitigate the security risks. Some of them are:

  • Avoid using/injecting dynamic Html content to your component.
  • If using external Html, that is coming from database or somewhere outside the application, sanitize it.
  • Try not to put external urls in the application unless it is trusted. Avoid url re-direction unless it is trusted.
  • Consider using AOT compilation or OFFLINE compilation.
  • Try to prevent XSRF attack by restricting the API and use of the app for KNOWN or secure environment/browsers.

Just like any other client side or web application, angular 2 application should also follow some of the basic guidelines to mitigate the security risks. Some of them are:



Discussion

No Comment Found