| 1 | <?php |
||
| 15 | class HostHeader implements TargetOriginInterface |
||
| 16 | { |
||
| 17 | use HeaderFetcher; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Returns an array of allowed domain names. |
||
| 21 | * If the "source" origin matches one of these origins, the request is valid. |
||
| 22 | * |
||
| 23 | * @return string[] |
||
| 24 | * @throws \TheCodingMachine\Middlewares\CsrfHeaderCheckMiddlewareException |
||
| 25 | */ |
||
| 26 | public function __invoke(ServerRequestInterface $request): array |
||
| 36 | |||
| 37 | private function removePortFromHost(string $host) |
||
| 41 | } |
||
| 42 |