Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AKPlanning
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KIF
AKPlanning
Merge requests
!108
Fix CSP for new event wizard (allow loading external style/script files for datepicker)
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix CSP for new event wizard (allow loading external style/script files for datepicker)
fix-wizard-csp
into
main
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Benjamin Hättasch
requested to merge
fix-wizard-csp
into
main
3 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Viewing commit
e2b97cda
Show latest version
1 file
+
2
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
e2b97cda
Fix CSP for new event wizard (allow loading external style/script files for datepicker)
· e2b97cda
Benjamin Hättasch
authored
3 years ago
AKModel/urls.py
+
2
−
1
Options
from
csp.decorators
import
csp_update
from
django.apps
import
apps
from
django.urls
import
include
,
path
from
rest_framework.routers
import
DefaultRouter
@@ -51,7 +52,7 @@ def get_admin_urls_event_wizard(admin_site):
return
[
path
(
'
add/wizard/start/
'
,
admin_site
.
admin_view
(
NewEventWizardStartView
.
as_view
()),
name
=
"
new_event_wizard_start
"
),
path
(
'
add/wizard/settings/
'
,
admin_site
.
admin_view
(
NewEventWizardSettingsView
.
as_view
()),
path
(
'
add/wizard/settings/
'
,
csp_update
(
FONT_SRC
=
[
"
maxcdn.bootstrapcdn.com
"
],
SCRIPT_SRC
=
[
"
cdnjs.cloudflare.com
"
],
STYLE_SRC
=
[
"
cdnjs.cloudflare.com
"
])(
admin_site
.
admin_view
(
NewEventWizardSettingsView
.
as_view
())
)
,
name
=
"
new_event_wizard_settings
"
),
path
(
'
add/wizard/created/<slug:event_slug>/
'
,
admin_site
.
admin_view
(
NewEventWizardPrepareImportView
.
as_view
()),
name
=
"
new_event_wizard_prepare_import
"
),
Loading