add: add new domain for cors

This commit is contained in:
behruz-dev
2025-09-30 14:39:23 +05:00
parent 23fdc55d0e
commit 421f585721
2 changed files with 3 additions and 1 deletions

View File

@@ -3,7 +3,9 @@ CORS_ALLOWED_ORIGINS = [
"http://localhost:3000",
"http://127.0.0.1:5173",
'https://agro365.vercel.app',
'https://agro365.felixits.uz',
'https://agro365-admin.vercel.app',
'https://agro365-admin.felixits.uz',
]
CSRF_TRUSTED_ORIGINS = [

View File

@@ -31,4 +31,4 @@ class LikeProductListApiView(generics.GenericAPIView):
serializer = self.serializer_class(page, many=True, context={'user': request.user})
return self.get_paginated_response(serializer.data)
serializer = self.serializer_class(products, many=True, context={'user': request.user})
return Response(serializer.data, status=200)
return Response(serializer.data, status=200)