Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Postman and Fiddler never generate preflight request

When ever I request to API through Postman or Fiddler never generate Preflight request. Both tool always generate Post or Get request. But when we are generating the request from file or other source then it first generate Preflight request and send HTTP OPTIONS.

Regards,

like image 903
Manu Avatar asked Dec 13 '15 07:12

Manu


1 Answers

The reason for that is because the CORS only applies to sandboxed environments, like the browser. When making a direct HTTP request with Fiddler you don't need any CORS. The pre-flight request is sent by the browser before sending the actual request to ensure that CORS is enabled.

like image 128
Darin Dimitrov Avatar answered Sep 28 '22 06:09

Darin Dimitrov