Update CORS

This commit is contained in:
Keannu Bernasol 2024-11-24 19:33:07 +08:00
parent 37f656e3a8
commit 7a29e0b737
2 changed files with 4 additions and 1 deletions

View file

@ -4,7 +4,7 @@ services:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
image: git.06222001.xyz/keannu125/docmanager_backend:dev image: git.06222001.xyz/keannu125/docmanagerbackend:dev
ports: ports:
- "${BACKEND_PORT}:8000" - "${BACKEND_PORT}:8000"
environment: environment:

View file

@ -264,3 +264,6 @@ DATA_UPLOAD_MAX_NUMBER_FIELDS = 20480
GRAPH_MODELS = {"app_labels": [ GRAPH_MODELS = {"app_labels": [
"accounts", "documents", "document_requests", "questionnaires"]} "accounts", "documents", "document_requests", "questionnaires"]}
CORS_ORIGIN_ALLOW_ALL = True
CORS_ALLOW_CREDENTIALS = True