I am trying create list item on Sharepoint on line using REST API. When I am creating item on the root site or on the root/subsite - everything is awesome. But if I am trying to create list item on the Team-site with URL like root/teams/msteams_cc6dfd/, I am getting error:
' <m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<m:code>-2130575251, System.Runtime.InteropServices.COMException</m:code>
<m:message xml:lang="en-US">The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.</m:message>
</m:error>
'
Interisting, that GET on this site works fine, but POST no.
P.S. Sorry for my crazy English.