Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gecBurton committed Oct 16, 2024
1 parent ce46f85 commit 5d0a5ba
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions django_app/redbox_app/settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# mypy: ignore-errors
import logging
import os
import socket
from pathlib import Path
Expand All @@ -14,11 +13,9 @@
from storages.backends import s3boto3
from yarl import URL

from django_app.redbox_app.setting_enums import LOCAL_HOSTS
from redbox_app.setting_enums import Classification, Environment

logger = logging.getLogger(__name__)


load_dotenv()

env = environ.Env()
Expand Down Expand Up @@ -209,9 +206,9 @@
]


for csp in CSP_CONNECT_SRC:
logger.info("CSP=%s", csp)

if ENVIRONMENT.is_test:
for host in LOCAL_HOSTS:
CSP_CONNECT_SRC.append(f"{WEBSOCKET_SCHEME}://{host}:*/ws/chat/")

# https://pypi.org/project/django-permissions-policy/
PERMISSIONS_POLICY: dict[str, list] = {
Expand Down

0 comments on commit 5d0a5ba

Please sign in to comment.