Merge pull request #2985 from nextcloud/fix-trusted-domain-error
Allow access to CSS resources
This commit is contained in:
commit
05d27ec148
|
@ -791,6 +791,13 @@ class OC {
|
|||
&& !\OC::$server->getTrustedDomainHelper()->isTrustedDomain($host)
|
||||
&& self::$server->getConfig()->getSystemValue('installed', false)
|
||||
) {
|
||||
// Allow access to CSS resources
|
||||
$isScssRequest = false;
|
||||
if(strpos($request->getPathInfo(), '/css/') === 0) {
|
||||
$isScssRequest = true;
|
||||
}
|
||||
|
||||
if (!$isScssRequest) {
|
||||
header('HTTP/1.1 400 Bad Request');
|
||||
header('Status: 400 Bad Request');
|
||||
|
||||
|
@ -809,6 +816,7 @@ class OC {
|
|||
|
||||
exit();
|
||||
}
|
||||
}
|
||||
\OC::$server->getEventLogger()->end('boot');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue