Skip to content

Commit

Permalink
Solve Nextcloud Content-Security-Policy issue in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Oct 19, 2022
1 parent 93d8b5a commit 5abc6a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ public function index()
*/
public function appGet()
{
SnappyMailHelper::startApp();
\RainLoop\Service::Handle();
SnappyMailHelper::startApp(true);
exit;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public static function startApp(bool $handle = false) : void
}

if ($handle) {
\header_remove('Content-Security-Policy');
\RainLoop\Service::Handle();
exit;
}
Expand Down

0 comments on commit 5abc6a3

Please sign in to comment.