Skip to content

Instantly share code, notes, and snippets.

View acu192's full-sized avatar

Ryan Henning acu192

View GitHub Profile
import sys
import time
import requests
from threading import Thread
URL = 'http://localhost:8003/api/temp/sleep'
def get():
from django.conf import settings
def SessionCookieSameSiteWorkaround(get_response):
def middleware(request):
# See:
# https://blog.chromium.org/2019/10/developers-get-ready-for-new.html
# https://github.com/django/django/pull/11894
# https://web.dev/samesite-cookie-recipes/#handling-incompatible-clients
# https://www.chromium.org/updates/same-site/incompatible-clients