#Spring Cloud API Gateway Issue

7 messages · Page 1 of 1 (latest)

teal lion
#

I have a problem about sending any request to the relevant service without the usage of bearer token.
After I registered, user information is created in user table. When I login, bearer token and refresh token as well as other information information is shown in the postman.
I can send a request without the usage of bearer token.
What I really want to do is to send any request to other service after authentication.
I get this issue "An expected CSRF token cannot be found (403 Forbidden)" when I send a request through the port number of api gateway.
I think there can be problem in api gateway but I couldn't solve it?
How can I do that? I updated my repository : https://github.com/Rapter1990/microservicecoursedailybuffer

GitHub

Spring Boot Microservice Example. Contribute to Rapter1990/microservicecoursedailybuffer development by creating an account on GitHub.

astral trail
#

if you use Spring Security, every POST request requires a CSRF token

#

you can disable that iff you do not use cookies for authentication

teal lion
teal lion
#

@everyone

astral trail
astral trail