export const getCourses = (num) =>
fetch(`${api}`, {
method: 'POST',
headers: {
...headers
},
mode: 'cors',
body: JSON.stringify({num})
}).then((res) => {console.log(res.headers.get('Authorization'));return res.json()})
.then(data => data)
想通过这段代码获取response头部的Authorization值,但是通过res.headers.get('Authorization')为null 可在chrome中可以看到响应头,这是为何啊?
 aluckdog
aluckdog 
					有只小跳蛙
 随时随地看视频慕课网APP
随时随地看视频慕课网APP
相关分类