Skip to content

Commit

Permalink
added rtt to access-control-allow-headers
Browse files Browse the repository at this point in the history
  • Loading branch information
jonarnes authored and jonarnes committed Jul 29, 2020
1 parent d8ebdf3 commit 53611b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Model/Plugins/Framework/Controller/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function afterRenderResult(ResultInterface $subject, ResultInterface $res
$response->setHeader('Accept-CH', 'viewport-width, width, device-memory, dpr, rtt, downlink, ect');
$response->setHeader('Feature-Policy', "ch-viewport-width {$imageEngineUrl};ch-width {$imageEngineUrl};ch-dpr {$imageEngineUrl};ch-device-memory {$imageEngineUrl};ch-rtt {$imageEngineUrl};ch-ect {$imageEngineUrl};ch-downlink {$imageEngineUrl}");
$response->setHeader('link', "<{$imageEngineUrl}>; rel=preconnect");
$response->setHeader('access-control-allow-headers', 'Origin, X-Requested-With, Content-Type, Accept');
$response->setHeader('access-control-allow-headers', 'Origin, X-Requested-With, Content-Type, Accept, rtt');
}

return $result;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"require": {
"php": "~7.0.0|~7.1.0|~7.2.0"
},
"version": "1.0.17",
"version": "1.0.18",
"license": "MIT",
"type": "magento2-module",
"autoload": {
Expand Down

0 comments on commit 53611b7

Please sign in to comment.