Why I get Internet Explorer enhanced security error message in Chrome if I call VSO API from Angularjs SPA?

前端 未结 3 839
抹茶落季
抹茶落季 2020-12-19 02:10

I have a SPA implemented in Angularjs - Typescript calling VSO API and providing authentication data you can find below:



        
3条回答
  •  离开以前
    2020-12-19 02:42

    Prefix your Personal Access Token(PAT) with :(colon). then Base 64 encode it.

    Eg:

    If "myaccesstoken" is my PAT,

    Apply base 64 encoder to ":myaccesstoken"

    In the Authorization header, place your base encoded string as,

    Authorization : Basic MyColonPrefixedBase64String

提交回复
热议问题