web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / PowerPages + local dev...
Power Pages
Suggested Answer

PowerPages + local development + Portals Web API

(0) ShareShare
ReportReport
Posted on by 3,458 Super User 2024 Season 1
Hi all,
 
we do develop a react application which will be hosted within a power pages page. The development takes place locally and we do want to use the power pages web api for CRUD operations. 
 
Question: Is there any way I can bypass CSFR for the power pages web api? Live would be so much easier if I could perform "real" requests to the api from my local machine. Any other suggestion for local development when working with the Power Pages WEB API?
 
Thanks.
Categories:
I have the same question (0)
  • SaiRT14 Profile Picture
    1,990 Super User 2025 Season 1 on at
    Using the Power Pages Web API for local development in a React application can be challenging due to the CSRF (Cross-Site Request Forgery) protection in place. However, bypassing CSRF is not recommended because it is a critical security feature to prevent malicious attacks.
  • Suggested answer
    oliver.rodrigues Profile Picture
    9,425 Most Valuable Professional on at
    Hi, I am curious as to why you are choosing this architecture, a few points here:
     
    • Using React with Power Pages you might face a few issues on liquid instructions as well since some of them use similar syntax
    • If you are doing a custom React app, what's the point on using Power Pages at all? You can just leverage regular Dataverse API to connect to Dataverse (if that's the only reason you are using Power Pages)
    • Answering your specific question around bypassing CSFR, no I don't think that would be possible using local dev/testing - but again, why not move to Dataverse API? Dataverse API is actually more rich/complete than Power Pages API

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 21 Super User 2026 Season 1

#2
Fubar Profile Picture

Fubar 19 Super User 2026 Season 1

#3
CN-06091549-0 Profile Picture

CN-06091549-0 18

Last 30 days Overall leaderboard