Skip to content

Commit

Permalink
Added allowCrossOriginAuthentication set to true for token handlers (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rfennell authored Jan 8, 2021
1 parent 7aa29d6 commit 77c3f7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,12 +389,12 @@ export function getCredentialHandler(pat: string): IRequestHandler {
} else {
agentApi.logInfo("Creating the credential handler from the OAUTH token");
// used for local debugging. Allows switching between PAT token and Bearer Token for debugging
credHandler = webApi.getHandlerFromToken(accessToken);
credHandler = webApi.getHandlerFromToken(accessToken, true);
}
return credHandler;
} else {
agentApi.logInfo("Creating the credential handler using override PAT (suitable for local testing or if the OAUTH token cannot be used)");
return webApi.getPersonalAccessTokenHandler(pat);
return webApi.getPersonalAccessTokenHandler(pat, true);
}

}
Expand Down
2 changes: 1 addition & 1 deletion Extensions/XplatGenerateReleaseNotes/V3/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 77c3f7f

Please sign in to comment.