In the third part of this Django and Vue series, I'm going to show you how to add leads and how to get them from the backend.
Matthew Strange | Mar 17, 22 02:43
Hi,
Why am i getting this error on the Lead add section? Unauthorized: /api/v1/leads/
[17/Mar/2022 14:42:38] "POST /api/v1/leads/ HTTP/1.1" 401 58
I have even copied your code?
Thanks
Matt
Stein Ove Helset | Mar 22, 22 01:04
Hmm, sounds weird :s are you sure the user is authenticated?
It's hard to say without seeing more of the error code.