Revision 3f1bee22

b/snf-cyclades-app/synnefo/api/delegate.py
35 35

  
36 36
import urlparse
37 37
from django.http import HttpResponse
38
from django.views.decorators.csrf import csrf_exempt
39 38

  
40 39
from django.conf import settings
41 40

  
......
71 70
        return HttpResponse(data, status=status)
72 71

  
73 72

  
74
@csrf_exempt
75 73
def delegate_to_resources_service(request):
76 74
    logger.debug("Delegate resources request to %s" % RESOURCES_URL)
77 75
    token = request.META.get('HTTP_X_AUTH_TOKEN')
......
80 78
                 body=request.raw_post_data)
81 79

  
82 80

  
83
@csrf_exempt
84 81
def delegate_to_user_quota_service(request):
85 82
    logger.debug("Delegate quotas request to %s" % USER_QUOTA_URL)
86 83
    token = request.META.get('HTTP_X_AUTH_TOKEN')
......
89 86
                 body=request.raw_post_data)
90 87

  
91 88

  
92
@csrf_exempt
93 89
def delegate_to_feedback_service(request):
94 90
    logger.debug("Delegate feedback request to %s" % USER_FEEDBACK_URL)
95 91
    token = request.META.get('HTTP_X_AUTH_TOKEN')
......
98 94
                 body=request.raw_post_data)
99 95

  
100 96

  
101
@csrf_exempt
102 97
def delegate_to_user_catalogs_service(request):
103 98
    token = request.META.get('HTTP_X_AUTH_TOKEN')
104 99
    headers = {'X-Auth-Token': token, 'content-type': 'application/json'}
b/snf-cyclades-app/synnefo/app_settings/urls.py
33 33

  
34 34
from django.conf.urls.defaults import *
35 35
from django.conf import settings
36
from django.views.decorators.csrf import csrf_exempt
37 36
from snf_django.lib.api.proxy import proxy
38 37

  
39 38
from functools import partial
......
56 55
if PROXY_USER_SERVICES:
57 56
    urlpatterns += patterns(
58 57
        '',
59
        (r'^login/?$', csrf_exempt(astakos_proxy)),
60
        (r'^feedback/?$', csrf_exempt(astakos_proxy)),
61
        (r'^user_catalogs/?$', csrf_exempt(astakos_proxy)),
62
        (r'^astakos/api/', csrf_exempt(astakos_proxy)),
58
        (r'^login/?$', astakos_proxy),
59
        (r'^feedback/?$', astakos_proxy),
60
        (r'^user_catalogs/?$', astakos_proxy),
61
        (r'^astakos/api/', astakos_proxy),
63 62
    )

Also available in: Unified diff