Which of the following headers can help in mitigating CSRF attacks?
- Content-Type
- X-Content-Security-Policy
- Referer-Policy
- X-Requested-With
The Referer-Policy header can help mitigate Cross-Site Request Forgery (CSRF) attacks by controlling which origins are allowed to make requests to the resource.
Loading...
Related Quiz
- What is Form Handling in PHP?
- In PHP OOP, what does the term "inheritance" mean?
- What is the primary advantage of using prepared statements in PHP?
- In a scenario where you have a form with multiple checkboxes having the same name, how are the values sent to the PHP server?
- You are writing a PHP script and you need to find the highest value in a list of numbers. How would you do this?