Error CSRF check failed

My installation of owncloud worked properly, it was installed in my hosting through Softaculous, this was automatically updated and after that I did not leave more access neither web nor with desktop clients, by web I gave the following error:
Access denied
CSRF check failed
I modified the /public_html/lib/private/AppFramework/Http/Request.php file on line 453 the original method was:

public function passesCSRFCheck() {
if($this->csrfTokenManager === null) {
return false;
}

	if (isset($this->items['get']['requesttoken'])) {
		$token = $this->items['get']['requesttoken'];
	} elseif (isset($this->items['post']['requesttoken'])) {
		$token = $this->items['post']['requesttoken'];
	} elseif (isset($this->items['server']['HTTP_REQUESTTOKEN'])) {
		$token = $this->items['server']['HTTP_REQUESTTOKEN'];
	} else {
		//no token found.
		return false;
	}
	$token = new CsrfToken($token);

	return $this->csrfTokenManager->isTokenValid($token);
}

And I modified it by:

public function passesCSRFCheck() {
if($this->csrfTokenManager === null) {
return false;
}

	if (isset($this->items['get']['requesttoken'])) {
		$token = $this->items['get']['requesttoken'];
	} elseif (isset($this->items['post']['requesttoken'])) {
		$token = $this->items['post']['requesttoken'];
	} elseif (isset($this->items['server']['HTTP_REQUESTTOKEN'])) {
		$token = $this->items['server']['HTTP_REQUESTTOKEN'];
	}else {
		//no token found.
		return true;
	}

	$token = new CsrfToken($token);

	return true;
}

Now it could access by web, but the clients of desktop do not work, some idea of how to solve it ???

Hi,

if using the search function of this forums and searching for the "CSRF check failed" error you should be able to find the following FAQ containing all needed info:

Hy,

You need set parameter in httpd.conf.