I have the following view:
@api_view(POST?) @csrf_exempt def user_login(request):
which adheres to the django rest framework.
How can I free this kind of csrf?
I am trying to make API calls via iphone.
This forum post seems to help clarify.
https://groups.google.com/forum/?fromgroups=#!topic/django-rest-framework/JCf4MwNtfwM
In accordance with this
"REST framework views are CSRF exempt by default unless your using UserLoggedInAuthentication"
Are you actively facing CSRF security with the REST Framework?
Joe
Source: https://habr.com/ru/post/1480172/More articles:NSTextField text and background color with / without focus - cocoaIs flash.utils.setTimeout () a memory leak if clearTimeout () is not called? - flashGetting unique elements from a container [C ++] - c ++there is no light on my scene three.js - javascriptIs VirtualEnv for Python essentially the same as RVM for Ruby - pythonwhy this Dart broadcast stream does not accept multiple calls to listen to - streamFilter unique elements from jQuery array - jqueryThe Tomcat web application only works after I explicitly run it on the / manager page - javaI have problems with limitkeypress.js and IE10 - javascriptUnblocking PHP - phpAll Articles