CredStore Perform Query error

前端 未结 12 1670
北荒
北荒 2020-11-27 12:16

I am running into an issue while doing API calls to my apps backend, every connection now prompts with

CredStore - performQuery - Error copying matching cred         


        
12条回答
  •  醉话见心
    2020-11-27 13:01

    The cause of me getting this error was due to me accidentally using two spaces between the "Bearer" and access token in my Authorization header.

    Incorrect:

    request.setValue("Bearer  \(accessToken)", forHTTPHeaderField: "Authorization")
    

    Correct:

    request.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
    

    Simple mistake, but it took a while to find it.

提交回复
热议问题