From a09356c814e0b8144e88f7b45cc4c8faf467ce16 Mon Sep 17 00:00:00 2001 From: MohamedHamed12 Date: Thu, 4 Apr 2024 10:30:10 +0200 Subject: [PATCH] add accounts --- project/project/settings/base.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/project/project/settings/base.py b/project/project/settings/base.py index 27a7d06..d09a777 100644 --- a/project/project/settings/base.py +++ b/project/project/settings/base.py @@ -134,3 +134,12 @@ } +### CORS HEADERS ### +CORS_ALLOW_HEADERS = ["*"] +CORS_ALLOW_ALL_ORIGINS = True +INSTALLED_APPS += [ + 'corsheaders', +] +MIDDLEWARE += [ + 'corsheaders.middleware.CorsMiddleware', +]