mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-03-21 18:58:04 +00:00
feat: CORS_ALLOWED_ORIGINS configurable via environment variable (#10355)
Co-authored-by: Pepe Fagoaga <pepe@prowler.com>
This commit is contained in:
@@ -4,6 +4,10 @@ All notable changes to the **Prowler API** are documented in this file.
|
|||||||
|
|
||||||
## [1.22.0] (Prowler UNRELEASED)
|
## [1.22.0] (Prowler UNRELEASED)
|
||||||
|
|
||||||
|
### 🚀 Added
|
||||||
|
|
||||||
|
- `CORS_ALLOWED_ORIGINS` configurable via environment variable [(#10355)](https://github.com/prowler-cloud/prowler/pull/10355)
|
||||||
|
|
||||||
### 🔄 Changed
|
### 🔄 Changed
|
||||||
|
|
||||||
- Attack Paths: Complete migration to private graph labels and properties, removing deprecated dual-write support [(#10268)](https://github.com/prowler-cloud/prowler/pull/10268)
|
- Attack Paths: Complete migration to private graph labels and properties, removing deprecated dual-write support [(#10268)](https://github.com/prowler-cloud/prowler/pull/10268)
|
||||||
|
|||||||
@@ -3,6 +3,10 @@ from config.env import env
|
|||||||
|
|
||||||
DEBUG = env.bool("DJANGO_DEBUG", default=False)
|
DEBUG = env.bool("DJANGO_DEBUG", default=False)
|
||||||
ALLOWED_HOSTS = env.list("DJANGO_ALLOWED_HOSTS", default=["localhost", "127.0.0.1"])
|
ALLOWED_HOSTS = env.list("DJANGO_ALLOWED_HOSTS", default=["localhost", "127.0.0.1"])
|
||||||
|
CORS_ALLOWED_ORIGINS = env.list(
|
||||||
|
"DJANGO_CORS_ALLOWED_ORIGINS",
|
||||||
|
default=["http://localhost", "http://127.0.0.1"],
|
||||||
|
)
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
# TODO Use Django database routers https://docs.djangoproject.com/en/5.0/topics/db/multi-db/#automatic-database-routing
|
# TODO Use Django database routers https://docs.djangoproject.com/en/5.0/topics/db/multi-db/#automatic-database-routing
|
||||||
|
|||||||
Reference in New Issue
Block a user