diff --git a/padelclub_backend/settings.py b/padelclub_backend/settings.py index b70c724..6628284 100644 --- a/padelclub_backend/settings.py +++ b/padelclub_backend/settings.py @@ -45,13 +45,11 @@ INSTALLED_APPS = [ 'rest_framework.authtoken', 'dj_rest_auth', 'qr_code', - 'corsheaders', ] AUTH_USER_MODEL = "tournaments.CustomUser" MIDDLEWARE = [ - 'corsheaders.middleware.CorsMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', @@ -61,8 +59,6 @@ MIDDLEWARE = [ 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] -CORS_ALLOW_ALL_ORIGINS = True - ROOT_URLCONF = 'padelclub_backend.urls' TEMPLATES = [ @@ -98,8 +94,6 @@ DATABASES = { } } - - # Password validation # https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators diff --git a/requirements.txt b/requirements.txt index 16c9294..b4b8fbf 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,4 +9,3 @@ PyJWT==2.8.0 httpx[http2]==0.27.0 channels[daphne]==4.1.0 twisted[http2,tls]==24.11.0 -django-cors-headers==4.6.0