Skip to content

Commit

Permalink
Merge pull request #2864 from tavikukko/tavikukko-request-digest-fix
Browse files Browse the repository at this point in the history
Update request-digest.ts
  • Loading branch information
patrick-rodgers authored Jan 8, 2024
2 parents 742b831 + 65ec344 commit 711db53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/sp/behaviors/request-digest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export function RequestDigest(hook?: (url: string, init: RequestInit) => IDigest

digest = await spPost(SPQueryable([this, combine(webUrl, "_api/contextinfo")]).using(JSONParse(),BatchNever()), {
headers: {
"Accept": "application/json",
"X-PnPjs-NoDigest": "1",
},
}).then(p => ({
Expand Down

0 comments on commit 711db53

Please sign in to comment.