cfug / dio

A powerful HTTP client for Dart and Flutter, which supports global settings, Interceptors, FormData, aborting and canceling a request, files uploading and downloading, requests timeout, custom adapters, etc.
https://dio.pub
MIT License
12.42k stars 1.5k forks source link

我想去除cookie请求头,请问要怎么做 #1519

Closed ZhZhZhen closed 2 years ago

ZhZhZhen commented 2 years ago

我写flutterWeb的时候,使用了dio。 在进行twitter的授权请求中,我使用Authorization头来进行授权。 但是不知道什么原因在使用dio进行请求时,自动加了cookie头(没有使用CookieManager)。 当我完全使用js来写请求时就不会有cookie头。 出现cookie的时候我的请求失败并返回了401错误,但是没出现cookie时请求是成功的

ufogxl commented 2 years ago

这个库是不是不维护了