| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
| 19 | { |
||
| 20 | $response = $handler->handle($request); |
||
| 21 | |||
| 22 | return $response |
||
| 23 | ->withHeader(Header::ALLOW, '*') |
||
| 24 | ->withHeader(Header::VARY, 'Origin') |
||
| 25 | ->withHeader(Header::ACCESS_CONTROL_ALLOW_ORIGIN, '*') |
||
| 26 | ->withHeader(Header::ACCESS_CONTROL_ALLOW_METHODS, 'GET,OPTIONS,HEAD') |
||
| 27 | ->withHeader(Header::ACCESS_CONTROL_ALLOW_HEADERS, '*') |
||
| 28 | ->withHeader(Header::ACCESS_CONTROL_ALLOW_CREDENTIALS, 'true'); |
||
| 29 | } |
||
| 31 |