I have a completed ServerBackEnd Web Api that receives requests from a frontend web application and returns a response for them.
My ServerBackend uses JWT Bearer tokens.
The purpose of my PCF is to replace the the frontend web application and send authorized requests to the backend.
I would like to avoid working in React as I am unfamiliar with the language and it would take too long to make a proof of concept.
Is there a way to authenticate those request inside the PCF without it ?
I made successful get request that did not require a bearer token using the fetch method inside PCF.
I am using Azure AD authentication for my ServerBackend API.
I apologize for not mentioning it earlier.
So a JWT Token needs to come from there.
You can create a PCF component that doesn't use React (most of mine don't)
But I suspect your biggest issue won't be React is will be CORS - Cross-Origin Resource Sharing which may course you problems if you can't get the headers set correctly https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
If however CORS isn't an issue https://medium.com/better-programming/authentication-and-authorization-using-jwt-with-node-js-4099b2e6ca1f shows you how to create a node application that handles JWT tokens
WarrenBelz
109
Most Valuable Professional
Michael E. Gernaey
82
Super User 2025 Season 1
MS.Ragavendar
72