File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 88from django .conf .urls .static import static
99from django .contrib import admin
1010from django .urls import include , path
11- from django .views .decorators .csrf import csrf_protect
11+ from django .views .decorators .csrf import csrf_exempt
1212from graphene_django .views import GraphQLView
1313from rest_framework import routers
1414
2222router .registry .extend (owasp_router .registry )
2323
2424urlpatterns = [
25- path ("idx/" , csrf_protect (algolia_search )),
26- path ("graphql/" , csrf_protect (GraphQLView .as_view (graphiql = settings .DEBUG ))),
25+ path ("idx/" , csrf_exempt (algolia_search )),
26+ path ("graphql/" , csrf_exempt (GraphQLView .as_view (graphiql = settings .DEBUG ))),
2727 path ("api/v1/" , include (router .urls )),
2828 path ("a/" , admin .site .urls ),
2929]
You can’t perform that action at this time.
0 commit comments