Solve Nextcloud Content-Security-Policy issue in debug mode

https://github.com/the-djmaze/snappymail/issues/96#issuecomment-1282946881
This commit is contained in:
the-djmaze 2022-10-19 09:01:36 +02:00
parent 93d8b5a419
commit 5abc6a3034
2 changed files with 2 additions and 2 deletions

View file

@ -47,8 +47,7 @@ class PageController extends Controller
*/
public function appGet()
{
SnappyMailHelper::startApp();
\RainLoop\Service::Handle();
SnappyMailHelper::startApp(true);
exit;
}

View file

@ -58,6 +58,7 @@ class SnappyMailHelper
}
if ($handle) {
\header_remove('Content-Security-Policy');
\RainLoop\Service::Handle();
exit;
}