什么时候会prefight request
1、请求方法不是get head post
2、post 的content-type不是application/x-www-form-urlencode,multipart/form-data,text/plain,例如把content-type设置成"application/json"
3、请求设置了自定义的header字段
1、请求方法不是get head post
2、post 的content-type不是application/x-www-form-urlencode,multipart/form-data,text/plain,例如把content-type设置成"application/json"
3、请求设置了自定义的header字段