Which of the following HTTP headers is crucial for preventing Cross-site Scripting (XSS) attacks?
- Content-Encoding
- Access-Control-Allow-Origin
- X-Frame-Options
- User-Agent
The HTTP header crucial for preventing Cross-site Scripting (XSS) attacks is X-Frame-Options. This header prevents a web page from being embedded within an
Loading...
Related Quiz
- How does the main field in the package.json file affect the behavior of a Node.js module when it is required by another module?
- How can you determine the type of a variable in JavaScript?
- The concept of defining a blueprint for the data in the database is known as ________.
- When chaining Promises, returning a non-Promise value from a .then() handler will cause the next .then() in the chain to receive a Promise resolved with that ________.
- You are developing a large-scale application and notice that some modules are loading slowly. How would you optimize the loading of modules to improve the application's performance?