feat: permit unauthenticated access to preview_document endpoint
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 27s
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 27s
This commit is contained in:
parent
3d27660895
commit
60f8dcb0d5
1 changed files with 3 additions and 0 deletions
|
|
@ -215,7 +215,10 @@ import io
|
|||
from django.http import FileResponse
|
||||
from django.views.decorators.clickjacking import xframe_options_exempt
|
||||
|
||||
from rest_framework.permissions import AllowAny
|
||||
|
||||
@api_view(['GET'])
|
||||
@permission_classes([AllowAny])
|
||||
@xframe_options_exempt
|
||||
def preview_document(request):
|
||||
filename = request.query_params.get('file', 'document.pdf')
|
||||
|
|
|
|||
Loading…
Reference in a new issue