Skip to Content
0
May 07, 2020 at 04:04 PM

CSRF Error in SAPUI5 Local Development using VS Code and UI5 2.0 Tooling

196 Views

Dear Experts,

I am a beginner trying to learn SAPUI5 by using new SAPUI5 local development UI5 Tooling.

I created a new app using Yeoman template generator and configured ES5 Gateway demo system for the OData service. I used ui5-middleware-simpleproxy to be able to connect to ES5 from the app. I am able to connect to the system while executing the app but I am getting below CSRF error from ES5 as the first batch OData call is failing.

I also checked if it is getting the CSRF token before the batch call and CSRF token exists during the batch call.

This same application when I build in Web IDE, it is working but not locally.

Please help me know the issue.

Really appreciate your support.

Regards,

Deepak Dora