Which header can be used by web applications to instruct the browser to block certain types of attacks by declaring which sources are legitimate?

  • Access-Control-Allow-Origin
  • Content-Security-Policy
  • Cross-Origin Resource Sharing
  • Referrer-Policy
The "Content-Security-Policy" header is used to instruct the browser to block certain types of attacks, such as XSS, by specifying which sources are considered legitimate for loading content.
Add your answer
Loading...

Leave a comment

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