Browse Source

Merge branch 'master' into allow-absolute-urls

pull/506/head
Sebastian Meyer 2 years ago
committed by GitHub
parent
commit
8209a234ef
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Classes/Plugin/Eid/PageViewProxy.php

2
Classes/Plugin/Eid/PageViewProxy.php

@ -69,6 +69,8 @@ class PageViewProxy
$response = GeneralUtility::makeInstance(Response::class);
if ($fetchedData) {
$response->getBody()->write($fetchedData);
$response = $response->withHeader('Access-Control-Allow-Methods', 'GET');
$response = $response->withHeader('Access-Control-Allow-Origin', $request->getHeader('Origin'));
$response = $response->withHeader('Content-Type', finfo_buffer(finfo_open(FILEINFO_MIME), $fetchedData));
}
if ($header === 0 && !empty($lastModified)) {

Loading…
Cancel
Save