411 error returned when calling _api/contextinfo

Copper Contributor

 

We have a form built using SPFX solution. On save or submit action sharepoint rest api is invoked.

When user clicks on save or submit the form get stuck and does not perform any action. On the browser console log we could see 411 error returned (content length required) on the rest api _api/ContextInfo request(screenshot attached).

 

We tried in chrome, edge and mozilla browser all shows the same result. In some blogs, there were solutions to add content-length:0 in the header. But this value is been automatically been added by all the major browsers if there is no content in post request.

 

We tried clearing browser cache and clearing cookies. All these resolution failed. Any suggestion on how to resolve this issue ?

0 Replies