Skip to content

Commit 0f1dafd

Browse files
committed
hotfix: police show pdf
1 parent 1b4f4f2 commit 0f1dafd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/Controller/PageController.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ public function index() {
6060
public function sign($uuid) {
6161
Util::addScript(Application::APP_ID, 'libresign-external');
6262
$response = new TemplateResponse(Application::APP_ID, 'external', [], TemplateResponse::RENDER_AS_BASE);
63+
64+
$policy = new ContentSecurityPolicy();
65+
$policy->addAllowedFrameDomain('\'self\'');
66+
$response->setContentSecurityPolicy($policy);
67+
6368
return $response;
6469
}
6570

0 commit comments

Comments
 (0)