Skip to Content
Nov 28, 2019 at 07:12 PM

403: Forbidden for the REST API POST request on Java backend on Cloud Foundry



I have been trying to connect my Sapui5 front-end with the java back-end(springboot application) using Rest Api on cloud foundry. The post request is giving me 403: Forbidden error. The issue is because of X-Csrf-Token. I saw a lot of blogs and have tried the solutions in them but that didn't work.

It would be really helpful if someone can help me with the right way to fetch the token from back-end and process the request from the front-end with the token.