|
@@ -70,7 +70,7 @@ |
|
|
block discarded – undo |
|
70
|
70
|
if ($fetchedData) { |
|
71
|
71
|
$response->getBody()->write($fetchedData); |
|
72
|
72
|
$response = $response->withHeader('Access-Control-Allow-Methods', 'GET'); |
|
73
|
|
- $response = $response->withHeader('Access-Control-Allow-Origin', $request->getHeaderLine('Origin') ?: '*'); |
|
|
73
|
+ $response = $response->withHeader('Access-Control-Allow-Origin', $request->getHeaderLine('Origin') ? : '*'); |
|
74
|
74
|
$response = $response->withHeader('Access-Control-Max-Age', '86400'); |
|
75
|
75
|
$response = $response->withHeader('Content-Type', finfo_buffer(finfo_open(FILEINFO_MIME), $fetchedData)); |
|
76
|
76
|
} |
Please login to merge, or discard this patch.