Sollicitatievraag
Sollicitatiegesprek voor de functie Back-end Developer (Python Django)
-
ErnieAppDjango REST framework provides CSRF protection. When should it be used?
Antwoord op sollicitatievraag
1 Antwoord
▲
0
▼
CSRF should be used when using SessionAuthentication in order to make sure that only the AJAX requests from the same context as the API are allowed. If you want your API to be publicly available you should probably look at TokenAuthentication or implement your own authentication backend.
Anoniem op
Voeg antwoorden of opmerkingen toe
Meld u aan of registreer u om hier een opmerking over te maken.