X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/10dc1a5e84d23582a58ead2551ddf54a66b94496..fc0b706f8c7eb67531df0a2acd972412e47c7010:/src/api/urls.py diff --git a/src/api/urls.py b/src/api/urls.py index a3e877d6c..536d3fe49 100644 --- a/src/api/urls.py +++ b/src/api/urls.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # @@ -11,7 +10,7 @@ from . import views urlpatterns = [ - url(r'^oauth/request_token/$', views.OAuth1RequestTokenView.as_view()), + url(r'^oauth/request_token/$', csrf_exempt(views.OAuth1RequestTokenView.as_view())), url(r'^oauth/authorize/$', views.oauth_user_auth, name='oauth_user_auth'), url(r'^oauth/access_token/$', csrf_exempt(views.OAuth1AccessTokenView.as_view())),