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

Notifications

Announcements

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 2 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,368 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 70 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard