mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Returning 404 on /Security, instead of Controller.ss template
We shouldn't expose unsolicited content on public URLs, mainly because it impacts SEO.
This commit is contained in:
parent
46362175f0
commit
18ae4c5db6
@ -280,6 +280,9 @@ class Security extends Controller {
|
|||||||
$this->response->addHeader('X-Frame-Options', 'SAMEORIGIN');
|
$this->response->addHeader('X-Frame-Options', 'SAMEORIGIN');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function index() {
|
||||||
|
return $this->httpError(404); // no-op
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the login form to process according to the submitted data
|
* Get the login form to process according to the submitted data
|
||||||
|
Loading…
Reference in New Issue
Block a user