Commit 31bfcad3 authored by Jean-samuel TETTEKPOE's avatar Jean-samuel TETTEKPOE
Browse files

Fix login

parent 98c934e7
Pipeline #9533 passed with stage
in 40 seconds
......@@ -131,6 +131,7 @@ REST_FRAMEWORK = {
# 'rest_framework.permissions.AllowAny',
# 'bars_core.perms.PerBarPermissionsOrAnonReadOnly',
"rest_framework.permissions.DjangoObjectPermissions",
"rest_framework.permissions.IsAuthenticated"
# 'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly',
),
"DEFAULT_AUTHENTICATION_CLASSES": (
......@@ -165,6 +166,7 @@ PERMISSION_DEFAULT_APL_DELETE_PERMISSION = False
# CORS headers
CORS_ORIGIN_ALLOW_ALL = True
CORS_ALLOW_CREDENTIALS = True
# API app
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment