I have a problem about sending any request to the relevant service through api gateway.
I have an issue after adding auth service.
What I really want to do is to send any request to other service after authentication.
I think there can be problem in api gateway but I couldn’t solve it?
Before starting to run all services, run zipkin and redis on docker.
Here are their commands as shown belowed.
docker run -d -p 9411:9411 openzipkin/zipkin
docker run -d --name redis -p 6379:6379 redis
Here is the error message shown below.
An expected CSRF token cannot be found (403 Forbidden)
How can I do that?
Here is the link of example : Link
Here is the screenshots : Link
2
Answers
see the error image
where do you call other services from? is it your apigateway controller?
I didn’t see any method to call other services, you need to implement methods to call other services, either using feign or spring api gateway (add the relative dependency).
further more, this is from your apigate config, its not complete and you are permitting all requests as well.
I couldn’t look into your code, cause there are a lot of errors like this one below:
I don’t know how it’s working for you!!
for csrf error try to add this one to your security config.