cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How does CSRF token works in deployed UI5 APP

0 Likes
2,448

I have developed a UI5 program that can update data through OData model.

When it runs locally, there is no problem with GET method and POST method.

However, if I deploy the same program as a HTML5 APP, GET method is OK but POST method occurred 403 error.

It seems like CSRF token is incorrect.

I guess maybe XSUAA changed the value of CSRF token?

because of both local run and postman run always get short tokens,

instead of the long token when deploy and run.

The following are the relevant settings.

Please help me to fix my deployed program, many thanks.

Destination:

xs-app.json:

manifest.json:

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
SAP Champion
SAP Champion

check if these parameters help when you set it to your odatamodel

earlyTokenRequest: true,
tokenHandling: true,