Skip to content

Commit 89bf43e

Browse files
authored
Removed Session authentication and using only Token Authentication
1 parent de7357f commit 89bf43e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

feedapi_project/settings.py

+7
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,10 @@
141141

142142
#cors allow request
143143
CORS_ORIGIN_ALLOW_ALL = True
144+
145+
#auth class - removing default session authentication to exclude csrf token passing
146+
REST_FRAMEWORK = {
147+
'DEFAULT_AUTHENTICATION_CLASSES': [
148+
'rest_framework.authentication.TokenAuthentication',
149+
]
150+
}

0 commit comments

Comments
 (0)