This commit is contained in:
Robert George 2023-02-03 12:03:52 -08:00
parent 297738dbb1
commit b82231202c
2 changed files with 4 additions and 4 deletions

View file

@ -368,10 +368,10 @@ else:
MEDIA_URL = "/images/"
MEDIA_FULL_URL = f"{PROTOCOL}://{DOMAIN}{MEDIA_URL}"
STATIC_FULL_URL = f"{PROTOCOL}://{DOMAIN}{STATIC_URL}"
CSP_DEFAULT_SRC = ("'self'")
CSP_SCRIPT_SRC = ("'self'")
CSP_DEFAULT_SRC = "'self'"
CSP_SCRIPT_SRC = "'self'"
CSP_INCLUDE_NONCE_IN=['script-src']
CSP_INCLUDE_NONCE_IN = ["script-src"]
OTEL_EXPORTER_OTLP_ENDPOINT = env("OTEL_EXPORTER_OTLP_ENDPOINT", None)
OTEL_EXPORTER_OTLP_HEADERS = env("OTEL_EXPORTER_OTLP_HEADERS", None)

View file

@ -23,7 +23,7 @@ from .helpers import handle_remote_webfinger
class Search(View):
"""search users or books"""
@csp_update(IMG_SRC='*')
@csp_update(IMG_SRC="*")
def get(self, request):
"""that search bar up top"""
if is_api_request(request):