Skip to content

Commit

Permalink
* actual CSP setting for both editors
Browse files Browse the repository at this point in the history
  • Loading branch information
imfx77 committed Mar 14, 2024
1 parent 25ac287 commit 0622f28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ public function initialize()
else if (!str_contains($cspRules['frame-src'], "https://stackedit.net/")) {
$cspRules['frame-src'] .= " https://stackedit.net/";
}
$this->setContentSecurityPolicy($cspRules);
}

$this->setContentSecurityPolicy($cspRules);

$this->template->hook->attach('template:config:sidebar', 'WysiwygMDEditor:config/sidebar');

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

0 comments on commit 0622f28

Please sign in to comment.