223 viewsNext Amazona

that part checking orders while inspecting the code using network. i get “request failed with status code 401” after clicking Place Order in the placeOrder screen. This is the error i get on the console:

xhr.js:258
POST http://localhost:3000/api/orders 401 (Unauthorized)

Bassir Answered question November 26, 2023

the token is not passed in the request header. check the network tab, request header and let me know the result.

Bassir Answered question November 26, 2023