diff --git a/cookie_consent/views.py b/cookie_consent/views.py index b756f23..998393b 100644 --- a/cookie_consent/views.py +++ b/cookie_consent/views.py @@ -97,6 +97,7 @@ class CookieStatusView(View): """ def get(self, request: HttpRequest) -> JsonResponse: + print("GET cookie status") accepted = get_accepted_cookie_groups(request) declined = get_declined_cookie_groups(request) not_accepted_or_declined = get_not_accepted_or_declined_cookie_groups(request) @@ -114,4 +115,6 @@ def get(self, request: HttpRequest) -> JsonResponse: group.varname for group in not_accepted_or_declined ], } + print("RESPONSE cookie status") + print(data) return JsonResponse(data) diff --git a/js/src/cookiebar.ts b/js/src/cookiebar.ts index f61fdb0..141b1f2 100644 --- a/js/src/cookiebar.ts +++ b/js/src/cookiebar.ts @@ -286,6 +286,7 @@ export const showCookieBar = async (options: Partial = {}): Promise