diff --git a/accounts/settings.py b/accounts/settings.py index f5e0bf2..6544afe 100644 --- a/accounts/settings.py +++ b/accounts/settings.py @@ -59,13 +59,13 @@ INSTALLED_APPS = [ MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', + 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', # 'django.middleware.locale.LocaleMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', - 'corsheaders.middleware.CorsMiddleware', ] # Tell Django OAuth Toolkit to use the Gooyal Application model @@ -243,6 +243,7 @@ CRISPY_TEMPLATE_PACK = "bootstrap5" AUTH_USER_MODEL = 'users.User' CORS_ORIGIN_ALLOW_ALL = True +CORS_ALLOW_ALL_ORIGINS = True CSRF_TRUSTED_ORIGINS = ['http://*.gooyal.com', 'https://*.gooyal.com'] JALALI_DATE_DEFAULTS = {