Skip to content

Commit

Permalink
Update CSP header
Browse files Browse the repository at this point in the history
  • Loading branch information
elnappo committed May 18, 2019
1 parent 9443815 commit 3c81081
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion project_novis/callsign/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class DefaultPagination(LimitOffsetPagination):
max_limit = 100


@method_decorator(csp_update(IMG_SRC=("maps.googleapis.com", "maps.gstatic.com"), SCRIPT_SRC=("maps.googleapis.com", "maps.gstatic.com")), name='dispatch')
@method_decorator(csp_update(IMG_SRC=("maps.googleapis.com", "maps.gstatic.com", "lh3.ggpht.com", "cbks0.googleapis.com", "khms0.googleapis.com", "khms1.googleapis.com"), SCRIPT_SRC=("maps.googleapis.com", "maps.gstatic.com")), name='dispatch')
class CallsignDetailView(DetailView):
queryset = Callsign.objects\
.select_related("prefix") \
Expand Down Expand Up @@ -116,6 +116,7 @@ def dispatch(self, request, *args, **kwargs):
return HttpResponseForbidden()


@method_decorator(csp_update(CONNECT_SRC=("'self'",)), name='dispatch')
class ClubUpdate(LoginRequiredMixin, UpdateView):
model = Club
slug_field = "callsign__name"
Expand Down

0 comments on commit 3c81081

Please sign in to comment.