Support bypassing Host check
An empty $httpHost can be passed to circumvent checking Host header.
This commit is contained in:
parent
02a63c180d
commit
dc9945f2a3
@ -107,7 +107,9 @@ class App {
|
|||||||
$decorated = $controller;
|
$decorated = $controller;
|
||||||
}
|
}
|
||||||
|
|
||||||
$httpHost = $httpHost ?: $this->httpHost;
|
if ($httpHost === null) {
|
||||||
|
$httpHost = $this->httpHost;
|
||||||
|
}
|
||||||
|
|
||||||
$allowedOrigins = array_values($allowedOrigins);
|
$allowedOrigins = array_values($allowedOrigins);
|
||||||
if (0 === count($allowedOrigins)) {
|
if (0 === count($allowedOrigins)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user