Closed newtoniumx3 closed 3 years ago
@newtoniumx3 Make sure your web server is passing along the Authorization header, some servers are not configure to allow that header to be passed on the request so the header will never get there to be validated.
I’m going to re setup my app from scratch to debug this. If the issue still happens I’ll re open this. Thank you
I'm having such a strange issue I don't understand what could be wrong. My code/configuration locally is not behaving the same way in production.
The workflow
In production
Specifically my issue is here: src/server/vendor/nuwave/lighthouse/src/Support/Http/Middleware/AttemptAuthentication.php
On both development and production guards has the same value of ['api']. However in development the following line returns true, but in production this returns false
How could this be? It's the exact same code running.
I specifically validated on production that the token I'm sending does not get altered and is properly received. It is the token specifically returned by the login endpoint of production.