Thank again for the quick reply.
I'm developing a web part in Kentico where it has a save button and a next button. When the user presses the save button, it commits the data on the form and stays on the same page. I would like to do this action as an asynch call. So I convert the back-end data object into a JSON object and assign it to Angular $scope and get angular to populate the form.
When the user completes the form and clicks on the Save button, I retrieve the JSON object (which is automatically populated thanks to Angular binding) and post it to a WebAPI method. I used the link below to setup the Web API and when I call the get method it works so the Web API is registered correctly.
But when I call the post method, I get an the error [CsrfException: The CSRF hidden field was missing]. Since the Web API is not inheriting from System.Page, I'm not sure why it's doing the check in the first place.
So I'm a bit lost as to why this error is happening. It seems to be originating from CMS.Protection.Web.UI.CsrfProtection.OnPostMapRequestHandlerExecute and not sure what is expected there.
Any help on this is much appreciated.