I have managed to successful create external registration and log in forms, which utilise the Strapi API. Data is successfully stored within Strapi.
I am working on a page which allows users to update their details, such as first and last names, email address, and password. I have found myself stuck on the updating of stored details, which produce a ‘Failed to load resource: the server responded with a status of 401 (Unauthorized)’ error within the browser console.
Could anyone point me in the right direction with this?
The jwt is stored as a cookie. I has successfully logged in and the API is pulling the stored first and last name correctly. I’ve also tried with a user ID and it’s still giving me a ‘401 (Unauthorized)’ error.