Manu
Manu

Reputation: 63

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,

Upvotes: 5

Views: 2704

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1039100

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.

Upvotes: 6

Related Questions