-
Hi @ch4mpy , When Non Browser Based Clients tries to invoke POST API call to service offered in the microservices, which are behing the BFF Gateway, we get the Error, invalid CSRF Token error. I have different routes with prefix like "/api/" for these non-browser based client, and other different routes for Browser based client. Hence I added this in the permit-all section "/api/**" route, so that it can be bypassed in the BFF. The GET API's with the prefix "/api/" are working for me. They are bypassing the BFF gateway and reaching the concerned microservices. When i try to do a POST API , i am getting invalid csrf token error. For POST API, i guess the permit-all section is not being considered. Is there a way to overcome the csrf token only for Non-Browser Based Clients Post/Put API, while still having the CSRF Validation for Browser based Clients. Thanks in advance for your support. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The filter chain with
|
Beta Was this translation helpful? Give feedback.
The filter chain with
oauth2Login
should be reserved for frontends that need to log users in. For programmatic clients getting tokens with the client credentials flow, you may either:oauth2ResourceServer
orbasic
), or disabled security.