Added img-src * csp exception to search

This commit is contained in:
Robert George 2023-02-03 11:53:41 -08:00
parent 6b97702cc4
commit afe651cd6d

View file

@ -8,6 +8,8 @@ from django.http import JsonResponse
from django.template.response import TemplateResponse
from django.views import View
from csp.decorators import csp_update
from bookwyrm import models
from bookwyrm.connectors import connector_manager
from bookwyrm.book_search import search, format_search_result
@ -21,6 +23,7 @@ from .helpers import handle_remote_webfinger
class Search(View):
"""search users or books"""
@csp_update(IMG_SRC='*')
def get(self, request):
"""that search bar up top"""
if is_api_request(request):