Skip to main content
Community site session details

Community site session details

Session Id : GtRBnQjmCGDokBdMKSHuRY
Power Pages - Power Apps Portals
Unanswered

Portal web api - cookie __RequestVerificationToken and the form field __RequestVerificationToken were swapped

Like (0) ShareShare
ReportReport
Posted on 13 Apr 2021 14:09:09 by 30

Hi Guys,

 

I was consuming web api on D365 portal app for updating record. My code was working fine few days before but now looks like after update it is throwing an error. 

90040107 Request validation failed : Validation of the provided anti-forgery token failed. The cookie __RequestVerificationToken and the form field __RequestVerificationToken were swapped

 

Any help would appreciated.

 

Regards,

Awais 

 

  • awais Profile Picture
    30 on 14 Apr 2021 at 13:01:22
    Re: Portal web api - cookie __RequestVerificationToken and the form field __RequestVerificationToken were swapped

    It is Event Management Portal App, written in Angular typescript. I have added webapi call in it.

  • oliver.rodrigues Profile Picture
    9,342 Most Valuable Professional on 13 Apr 2021 at 19:00:53
    Re: Portal web api - cookie __RequestVerificationToken and the form field __RequestVerificationToken were swapped

    That doesn't look like Portals Web API.. is this a custom Azure Functions or something like that? 

    Take a look at the authentication token via Admin Center: https://docs.microsoft.com/en-us/powerapps/maker/portals/admin/manage-auth-key

    This key expires every two years and can be renewed quickly from there.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 2

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 2

#3
surya narayanan Profile Picture

surya narayanan 35

Loading complete