add: add new domain for cors
This commit is contained in:
@@ -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 = [
|
||||
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user