Skip to content
Snippets Groups Projects
Commit 8a285743 authored by Benjamin Hättasch's avatar Benjamin Hättasch
Browse files

Allow to include the AKWall as frame into any page

Set content security policy for frame-ancestors to "*" for this view
parent 207e3074
No related branches found
No related tags found
No related merge requests found
from csp.decorators import csp_replace
from django.urls import path, include from django.urls import path, include
from . import views from . import views
app_name = "plan" app_name = "plan"
...@@ -8,7 +10,7 @@ urlpatterns = [ ...@@ -8,7 +10,7 @@ urlpatterns = [
'<slug:event_slug>/plan/', '<slug:event_slug>/plan/',
include([ include([
path('', views.PlanIndexView.as_view(), name='plan_overview'), path('', views.PlanIndexView.as_view(), name='plan_overview'),
path('wall/', views.PlanScreenView.as_view(), name='plan_wall'), path('wall/', csp_replace(FRAME_ANCESTORS="*")(views.PlanScreenView.as_view()), name='plan_wall'),
path('room/<int:pk>/', views.PlanRoomView.as_view(), name='plan_room'), path('room/<int:pk>/', views.PlanRoomView.as_view(), name='plan_room'),
path('track/<int:pk>/', views.PlanTrackView.as_view(), name='plan_track'), path('track/<int:pk>/', views.PlanTrackView.as_view(), name='plan_track'),
]) ])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment