CORS - What is the motivation behind introducing preflight requests?

前端 未结 9 2445
轻奢々
轻奢々 2020-11-22 11:30

Cross-origin resource sharing is a mechanism that allows a web page to make XMLHttpRequests to another domain (from wikipedia).

I\'ve been fiddling with COR

9条回答
  •  礼貌的吻别
    2020-11-22 12:27

    Additionally, for HTTP request methods that can cause side-effects on user data (in particular, for HTTP methods other than GET, or for POST usage with certain MIME types), the specification mandates that browsers "preflight" the request

    Source

提交回复
热议问题