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.
Loading...
Related Quiz
- When retrieving the latest 10 records from a table sorted by date, the combination of Active Record Class methods to use is: ________.
- What is the difference between an error and an exception in programming?
- To enable error logging in a production environment, the log threshold value is changed in the ________ file.
- In the Active Record Class, which method is typically used to insert a new record into the database?
- The process of sorting results in a specific order in CodeIgniter's Query Builder is achieved using the ________ method.