Skip to content

Commit

Permalink
Merge pull request #759 from ImageMarkup/csrf-exempt-zip-download-url
Browse files Browse the repository at this point in the history
Add CSRF exemption to create_zip_download_url
  • Loading branch information
danlamanna authored Aug 30, 2023
2 parents 46196f4 + dd8c350 commit a4d705c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions isic/zip_download/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ def create_zip_download_url(request: HttpRequest, payload: SearchQueryIn):
return f"{settings.ZIP_DOWNLOAD_SERVICE_URL}/download?zsid={token}"


create_zip_download_url.csrf_exempt = True


@zip_router.get("/file-listing/", include_in_schema=False, auth=ZipDownloadTokenAuth())
def zip_file_listing(
request: HttpRequest,
Expand Down

0 comments on commit a4d705c

Please sign in to comment.