Skip to content

Commit ee73830

Browse files
add csrf_exempt in view.py (Django) (#2119)
1 parent 5ed31b4 commit ee73830

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pygeoapi/django_/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939

4040
from django.conf import settings
4141
from django.http import HttpRequest, HttpResponse
42+
from django.views.decorators.csrf import csrf_exempt
4243

4344
from pygeoapi.api import API, APIRequest, apply_gzip
4445
import pygeoapi.api as core_api
@@ -343,6 +344,7 @@ def processes(request: HttpRequest,
343344
process_id)
344345

345346

347+
@csrf_exempt
346348
def process_execution(request: HttpRequest, process_id: str) -> HttpResponse:
347349
"""
348350
OGC API - Processes execution endpoint

0 commit comments

Comments
 (0)