Loading…

What are the security threats should we be aware of in angular 2?

  • Avoid injecting dynamic Html content
  • Sanitize external HTML
  • Do not put external URLs in the application
  • Use AOT compilation
  • Prevent XSRF attack by restricting api

Suggest An Answer

No suggestions avaliable!

Latest post from Angular 2 Interview Questions

Ask Question