API: Fix CSRF support for session-based usage

This commit is contained in:
Raphael Michel
2024-01-26 11:20:38 +01:00
parent 11e922b1a9
commit 2354affde7
2 changed files with 44 additions and 1 deletions

View File

@@ -398,7 +398,7 @@ REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'pretix.api.auth.token.TeamTokenAuthentication',
'pretix.api.auth.device.DeviceTokenAuthentication',
'rest_framework.authentication.SessionAuthentication',
'pretix.api.auth.session.SessionAuthentication',
'oauth2_provider.contrib.rest_framework.OAuth2Authentication',
),
'DEFAULT_RENDERER_CLASSES': (