Hello everyone. I need some guidance for this issue.
I have 2 docker containers, an Angular app and NestJS app, deployed behind traefik. The NestJS app acts as an API.
The headscratchers, at least for me:
- API endpoints called by the Angular app always returns HTTP 403 Forbidden resource
- API endpoints called directly using a browser or from Insomnia returns the expected response
- Attaching a middleware to see the incoming request headers to NestJS app shows that traefik correctly passing the header from the client
I have tried the following:
- Enable CORS with origin *
- Set the express 'trusted proxy' to true
But the issue persists.
Any suggestions are appreciated. Thank you!