The OPTIONS HTTP method is used when the browser is making a ________ request to the server.
- Preflight CORS
- GET
- POST
- PUT
The OPTIONS HTTP method is used when the browser is making a preflight CORS request to the server. A preflight request is a CORS mechanism that checks if the actual request (e.g., a GET or POST) is safe to send to the server by first making an HTTP OPTIONS request to ensure the server allows the requested method and headers.
Loading...
Related Quiz
- In Jest, to isolate a module from its dependencies for more focused unit testing, you would use ______.
- In what scenario would using Domain API be beneficial for error handling in Node.js?
- What will happen if you run npm init -y in a Node.js project directory?
- While working on a project, you are required to extract specific properties from objects and assign them to variables. How would you utilize destructuring assignment to efficiently accomplish this task, and what would you do to handle non-existent properties?
- Closures, by preserving the scope chain at the time of their creation, enable the implementation of ________ patterns in JavaScript.