Why Postman and Fiddler never generate preflight r

2019-07-09 11:01发布

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,

1条回答
够拽才男人
2楼-- · 2019-07-09 11:36

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.

查看更多
登录 后发表回答