π Token Authentication and CORS π
Posted on Jul 20th, 2021
Todayβs Topics
- QuestionBox models
- Token authentication in DRF with djoser
- CORS headers
π― Project: QuestionBox
Kick QuestionBox into gear! You should be able to return questions and answers at least by tomorrow.
π Read | πΊ Watch | π§ Listen
- Finally Understand auth in DRF - a Will Vincent talk -> Will isnβt using the djoser library but he does a great job of reviewing different auth strategies and why you would choose one or the other. Watch this for a better understanding and overview of auth.
π Resources
Authentication
- Djoser documentation
- DRF docs: Token-based authentication
- The Ultimate Tutorial for Django REST Framework: Login and Authentication
CORS
- MDN CORS
- Julia Evans comic explaining CORS better than MDN does
- Django CORS Guide
django-cors-headers