From 7a29e0b73779c3b7ee6800db262d0f5468b26690 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Sun, 24 Nov 2024 19:33:07 +0800 Subject: [PATCH] Update CORS --- docker-compose.dev.yml | 2 +- docmanager_backend/config/settings.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index f4286ca..98f8632 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -4,7 +4,7 @@ services: build: context: . dockerfile: Dockerfile - image: git.06222001.xyz/keannu125/docmanager_backend:dev + image: git.06222001.xyz/keannu125/docmanagerbackend:dev ports: - "${BACKEND_PORT}:8000" environment: diff --git a/docmanager_backend/config/settings.py b/docmanager_backend/config/settings.py index 3f23ee9..02f277f 100644 --- a/docmanager_backend/config/settings.py +++ b/docmanager_backend/config/settings.py @@ -264,3 +264,6 @@ DATA_UPLOAD_MAX_NUMBER_FIELDS = 20480 GRAPH_MODELS = {"app_labels": [ "accounts", "documents", "document_requests", "questionnaires"]} + +CORS_ORIGIN_ALLOW_ALL = True +CORS_ALLOW_CREDENTIALS = True \ No newline at end of file