umi-request icon indicating copy to clipboard operation
umi-request copied to clipboard

umi-request 在做拦截器的时候为请求 headers 中统一增加 Cookie 字段未成功?

Open glk-hll opened this issue 3 years ago • 3 comments

umi-request 在做拦截器的时候为请求 headers 中统一增加 Cookie 字段不能成功, 将 Cookie 字段修改为其他字段都是可行的,是怎么回事?

headers 增加的字段为: image

请求 header 头为: image

glk-hll avatar May 20 '21 02:05 glk-hll

what?

bestofyour avatar May 31 '21 09:05 bestofyour

umi-request 在做拦截器的时候为请求 headers 中统一增加 Cookie 字段不能成功, 将 Cookie 字段修改为其他字段都是可行的,是怎么回事?

headers 增加的字段为: image

请求 header 头为: image

你这个可能需要修改一下credentials 为include,默认omit 会忽略cookie

但是我这边出现这么个情况,传的cookie 没问题,但是会不知道被谁强改成SWOFT_SESSION_ID 有大哥遇到过类似的问题吗,找不到在那里被修改了cookie image

progerchai avatar Jun 02 '21 14:06 progerchai

没用

givetimetolife avatar Aug 10 '22 03:08 givetimetolife