Browse Source

disable cookie auth in API because csrf=False

Nick Sweeting 1 year ago
parent
commit
dd05ad04fa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      archivebox/api/auth.py

+ 1 - 1
archivebox/api/auth.py

@@ -105,6 +105,6 @@ API_AUTH_METHODS = [
     HeaderTokenAuth(),
     BearerTokenAuth(),
     QueryParamTokenAuth(), 
-    django_auth_superuser,
+    # django_auth_superuser,       # django admin cookie auth, not secure to use with csrf=False
     UsernameAndPasswordAuth(),
 ]