Pivotal Cloud Foundry Support

 View Only

 403 error for POST on PCF

Sopaneel Maskar's profile image
Sopaneel Maskar posted Aug 07, 2019 09:09 AM

I have deployed backend api on PCF and in the same space , I also have deployed Angular 5 application which will communicate with backend calls. I'm good with GET calls and receiving 403 for other http calls. I have enabled the CORS but still issue remains same. please help. Thanks in advance. ​

Daniel Mikusa's profile image
Daniel Mikusa

The platform would not be causing the 403. It would never return a 401/403 for your app as it does not as I write this provide any authorization or authentication for apps running on it.

 

You would need to look at your app to see why it's rejecting the request with a 403 Forbidden. CORS is one possibility, but your app might also have RBAC restrictions and perhaps one of those is not right? Just guessing though as I'm not familiar with your app. Sorry.