问题描述
Edge浏览器中丢失请求头Request Header,造成请求头中授权信息无法带到API中,而在Chrome中一切正常。
解决方案:
IIS -> HTTP Response Headers 中添加
access-control-allow-credentials:true
access-control-allow-headers:Authorization,Content-Type
access-control-allow-methods:GET,POST,OPTIONS,PUT,DELETE
access-control-allow-origin:域名或IP