Auth0 Home Blog Docs

No authorization token was found - POST request to custom API secured with express-jwt


#1

Hi,

I’m trying to make a POST request to a secured endpoint on my custom API server. All other requests return as expected. The endpoint uses express-jwt to check the supplied token as outlined in the Auth0 documentation.

I’ve checked and both the authorization header and body data is received correctly by the API. To make the request, I’m using axios.

axios.post(${API_URL}/,{headers, data:data})…

Am I making a rookie error?

Any help would be greatly appriciated, thanks!


#2

Bump! Any suggestions?