cleaning up

This commit is contained in:
huangjx
2021-09-17 14:41:15 +08:00
parent de2afbb0ef
commit 2497fdc535
2 changed files with 4 additions and 8 deletions

View File

@@ -13,7 +13,6 @@ use OCP\AppFramework\Http\TemplateResponse;
use OCP\IL10N;
use OCP\IRequest;
use OC_Util;
use \OCP\AppFramework\Http\StrictContentSecurityPolicy;
class MainController extends Controller
{
@@ -58,12 +57,6 @@ class MainController extends Controller
$response = new TemplateResponse($this->appName, 'Index', $params);
$csp = new StrictContentSecurityPolicy();
$csp->allowEvalScript();
$csp->allowInlineStyle();
$response->setContentSecurityPolicy($csp);
return $response;
}