Secure Way to send token to javascript

9 views
Skip to first unread message

Anirudh choudhary

unread,
Jul 21, 2020, 4:35:51 PM7/21/20
to django...@googlegroups.com
Hello everyone

I am Making a website on which I am extracting the data from API using ajax request. To Secure my API I use restframe.authtoken.when I am using inline javascript in base.html. I am passing my Token as context data to HTML file and using it but now I put my javascript in static storage. and now I am not able to get the Token and I am getting 401 error on ajax request 

Someone, please help I want to make API secure and accessible to the user 


for more information to get deep about question write back to me 

Thanks
Reply all
Reply to author
Forward
0 new messages