mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
Solve Nextcloud Content-Security-Policy issue in debug mode
https://github.com/the-djmaze/snappymail/issues/96#issuecomment-1282946881
This commit is contained in:
parent
93d8b5a419
commit
5abc6a3034
2 changed files with 2 additions and 2 deletions
|
|
@ -47,8 +47,7 @@ class PageController extends Controller
|
||||||
*/
|
*/
|
||||||
public function appGet()
|
public function appGet()
|
||||||
{
|
{
|
||||||
SnappyMailHelper::startApp();
|
SnappyMailHelper::startApp(true);
|
||||||
\RainLoop\Service::Handle();
|
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,7 @@ class SnappyMailHelper
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($handle) {
|
if ($handle) {
|
||||||
|
\header_remove('Content-Security-Policy');
|
||||||
\RainLoop\Service::Handle();
|
\RainLoop\Service::Handle();
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue