vmware-tanzu-labs / educates-training-platform

A platform for hosting interactive workshop environments in Kubernetes, or on top of a local container runtime.
https://docs.educates.dev
Apache License 2.0
63 stars 15 forks source link

Duplicate entry for CSP_SCRIPT_SRC #368

Closed GrahamDumpleton closed 1 month ago

GrahamDumpleton commented 1 month ago

Describe the bug

At https://github.com/vmware-tanzu-labs/educates-training-platform/blob/develop/training-portal/src/project/settings.py#L238 in training portal code, there are duplicate settings for CSP_SCRIPT_SRC.

CSP_SCRIPT_SRC = ("'self'",)
CSP_SCRIPT_SRC = ("'self'", "www.clarity.ms", "cdn.amplitude.com")

First one can be removed.

Additional information

No response