Https requests with Authorization not working via Safari

前端 未结 4 1989
伪装坚强ぢ
伪装坚强ぢ 2021-02-12 14:13

Context

XHR requests with Authorization header over HTTPS (both together) don\'t reach the server, using Safari (IOS and MacOS). But it works with IE, C

4条回答
  •  误落风尘
    2021-02-12 14:58

    I also faced a similar problem with safari where 'Authorization' in the header was not sent in the GET request but it ended up in a simple thing.

    I simply appended a '/' at the end of the request URL and it worked for me.

    for eg: change URL from '/token' to '/token/'.

提交回复
热议问题