IDigestCache, DigestCache in SPFx 1.5
I can't find IDigestCache, DigestCache in '@microsoft/sp-http' in SPFx 1.5
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 65fb0645-712c-1b50-238b-7ef99109c1d9
- Version Independent ID: 8ba9ca9e-d68f-4ca0-2e99-a9a86d294faa
- Content: Work with __REQUESTDIGEST
- Content Source: docs/spfx/web-parts/basics/working-with-requestdigest.md
- Product: sharepoint
- GitHub Login: @spdevdocs
- Microsoft Alias: spdevdocs
Thanks for reporting this, we are looking into to the root cause and ways to fix this asap.
We will be addressing this in the 1.5.1 release, which will be released soon.
This should be now addressed with the 1.5.1 release, so would request to validate the situation with following. Here are short release notes for 1.5.1 release - https://twitter.com/SharePoint/status/1011689501213757441.
Also broken in some builds of 1.4. To work around it (as taking on trying to upgrade to a new spfx version is more than I wanted to take on to get a digest) I just did this:
let fetchProps:RequestInit = { method:"POST", headers: { "Accept":"application/json;odata=verbose","cookie":document.cookie}, credentials:"include" }; fetch(this.context.pageContext.web.absoluteUrl + "/_api/contextinfo",fetchProps).then((response:any) => response.json()).then((responseJson:any) => { this.setState({"digest": responseJson.d.GetContextWebInformation.FormDigestValue as string }); });
This exists now.
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues