fix(api): disable csrf checks for api routes
This commit is contained in:
@@ -29,11 +29,6 @@ CORS_ALLOW_CREDENTIALS = True
|
||||
CORS_ALLOW_PRIVATE_NETWORK = True
|
||||
CSRF_COOKIE_SECURE = False
|
||||
SESSION_COOKIE_SECURE = False
|
||||
MIDDLEWARE = [
|
||||
middleware
|
||||
for middleware in MIDDLEWARE
|
||||
if middleware != "django.middleware.csrf.CsrfViewMiddleware"
|
||||
]
|
||||
|
||||
|
||||
def _normalize_local_host(host: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user