To safeguard a CodeIgniter application from XSS attacks while allowing some HTML content, a developer should use ________.

  • Cross-Origin Resource Sharing (CORS)
  • Cross-Site Request Forgery (CSRF) Tokens
  • Input Validation
  • Output Escaping
To safeguard against XSS attacks while allowing some HTML content, a developer should use output escaping. This technique ensures that any user-supplied data displayed in the application is properly encoded, preventing malicious scripts from being executed. Output escaping is a defensive coding practice to enhance security.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *