405 error

This commit is contained in:
alorig
2025-11-21 20:59:50 +05:00
parent 1227df4a41
commit a82be89d21
3 changed files with 116 additions and 3 deletions

View File

@@ -219,6 +219,7 @@ REST_FRAMEWORK = {
'rest_framework.permissions.AllowAny', # Allow unauthenticated access for now
],
'DEFAULT_AUTHENTICATION_CLASSES': [
'igny8_core.api.authentication.APIKeyAuthentication', # WordPress API key authentication (check first)
'igny8_core.api.authentication.JWTAuthentication', # JWT token authentication
'igny8_core.api.authentication.CSRFExemptSessionAuthentication', # Session auth without CSRF for API
'rest_framework.authentication.BasicAuthentication', # Enable basic auth as fallback