Skip to content

Commit 0622f28

Browse files
committed
* actual CSP setting for both editors
1 parent 25ac287 commit 0622f28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Plugin.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ public function initialize()
3636
else if (!str_contains($cspRules['frame-src'], "https://stackedit.net/")) {
3737
$cspRules['frame-src'] .= " https://stackedit.net/";
3838
}
39-
$this->setContentSecurityPolicy($cspRules);
4039
}
4140

41+
$this->setContentSecurityPolicy($cspRules);
42+
4243
$this->template->hook->attach('template:config:sidebar', 'WysiwygMDEditor:config/sidebar');
4344

4445
$this->route->addRoute('settings/wysiwygmdeditor', 'WysiwygMDEditorConfigController', 'show', 'WysiwygMDEditor');

0 commit comments

Comments
 (0)