feat(dashboard): improve parser API checks
All checks were successful
CI/CD Pipeline / Quality Gate (push) Successful in 21s
CI/CD Pipeline / Build and Push Images (push) Successful in 6s
CI/CD Pipeline / Internal Notify (push) Successful in 1s
CI/CD Pipeline / Deploy Dev in Dokploy (push) Successful in 1s

This commit is contained in:
2026-04-29 11:47:45 +02:00
parent d6de9a27b3
commit be7af18c36
7 changed files with 1548 additions and 121 deletions

View File

@@ -22,6 +22,19 @@ STATE_CORP_EXCHANGE_TOKEN = os.getenv(
# JWT
SIMPLE_JWT["SIGNING_KEY"] = SECRET_KEY
# Dev frontend can run from any workstation/port in the local network.
# Production keeps the restrictive CORS/CSRF policy from settings.production.
CORS_ALLOW_ALL_ORIGINS = True
CORS_ALLOW_CREDENTIALS = True
CORS_ALLOW_PRIVATE_NETWORK = True
CSRF_COOKIE_SECURE = False
SESSION_COOKIE_SECURE = False
MIDDLEWARE = [
middleware
for middleware in MIDDLEWARE
if middleware != "django.middleware.csrf.CsrfViewMiddleware"
]
def _normalize_local_host(host: str) -> str:
"""Нормализует host для локального запуска backend на хосте."""