本文介绍了Fetch get请求返回空标头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
标头确实是通过http:
发送
Headers was indeed sent via http:
但是,fetch返回的空标题:
However, fetch returned empty headers:
推荐答案
原来我需要设置 Access-Control-Expose-Headers
以包含我想要公开的标头。
It turns out that I need to set Access-Control-Expose-Headers
to include the headers I would like to expose.
这篇关于Fetch get请求返回空标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!