Which HTTP header is crucial for handling CORS in web applications?
- Access-Control-Allow-Origin
- Cross-Domain-Allow
- Allow-Access-Control
- Origin-Control-Allow
The crucial HTTP header for handling CORS in web applications is Access-Control-Allow-Origin. This header specifies which domains are allowed to access resources on the server. It plays a central role in configuring the CORS policy for a web server.
Loading...
Related Quiz
- Which method can be used to add new elements to an array in JavaScript?
- You need to implement a feature where documents from a MongoDB collection are automatically archived after a certain period. How would you approach this requirement using Mongoose functionalities?
- What is the significance of HTTP/2 in web performance optimization compared to HTTP/1.x?
- What will happen if you run npm init -y in a Node.js project directory?
- In Express, the ______ method is used to specify a callback function to handle HTTP GET requests to a specified route.