Skip to content

Commit

Permalink
add csrf_exempt (GeoNode#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
davisc authored and bitner committed Mar 14, 2018
1 parent a0e6fce commit 9d2d2f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geonode/geoserver/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
from django.template import RequestContext
from django.utils.datastructures import MultiValueDictKeyError
from django.utils.translation import ugettext as _
from django.views.decorators.csrf import csrf_exempt

from guardian.shortcuts import get_objects_for_user

Expand Down Expand Up @@ -323,7 +324,7 @@ def style_change_check(request, path):
'There is not a style with such a name: %s.' % style_name)
return authorized


@csrf_exempt
def geoserver_rest_proxy(request, proxy_path, downstream_path):

if not request.user.is_authenticated():
Expand Down

0 comments on commit 9d2d2f2

Please sign in to comment.