Skip to content

Commit

Permalink
Revert "[issue-nextcloud#39] Adjust PageController for development se…
Browse files Browse the repository at this point in the history
…tup."

This reverts commit ba3dbd3.
  • Loading branch information
charismatic-claire committed Nov 15, 2018
1 parent a5208ed commit f046f55
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions lib/Controller/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

namespace OCA\Contacts\Controller;

use OC\Security\CSP\ContentSecurityPolicy;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IRequest;
Expand All @@ -48,15 +47,7 @@ public function __construct(string $AppName,
public function index(): TemplateResponse {
$params = ['user' => $this->userId];

// fix content security policy issue
$response = new TemplateResponse('contacts', 'main', $params); // templates/main.php
$csp = new ContentSecurityPolicy();
$csp->allowEvalScript();
$csp->allowInlineScript();
$csp->allowInlineStyle();
$response->setContentSecurityPolicy($csp);

return $response;
return new TemplateResponse('contacts', 'main', $params); // templates/main.php
}

/**
Expand Down

0 comments on commit f046f55

Please sign in to comment.