701 viewsJS Amazona

Hi

I am at lesson 28. when I press the place order button i get error message “Invalid Token”. Which is coming from utils.js in the backend folder. I checked someone had similar issue and a suggestion was to check utils.js. I have no mistake in utils.js but still getting message. I am stuck at this point for almost 1 week. could some body help ?

in the inspect i get below error

  1. Request URL:http://localhost:5000/api/orders
  2. Request Method:POST
  3. Status Code:401 Unauthorized
  4. Remote Address:[::1]:5000
  5. Referrer Policy:strict-origin-when-cross-origin
Bassir Answered question March 10, 2023

sound good. will check it.

Bassir Answered question March 10, 2023