File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 1313 */
1414class CorsCheck implements CorsCheckInterface
1515{
16+ /**
17+ * @var \Magento\Framework\Webapi\Rest\Response $response
18+ */
19+ private $ response ;
20+
21+ /**
22+ * @var \Magento\Framework\Webapi\Rest\Request $request
23+ */
24+ private $ request ;
1625
1726 /**
1827 * Initialize dependencies.
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class CorsRequestOptionsPlugin
2222 * Allow Options requests from jQuery AJAX
2323 *
2424 * @param Request $subject
25- * @return void
25+ * @return string
2626 * @throws InputException
2727 */
2828 public function aroundGetHttpMethod (
@@ -34,4 +34,4 @@ public function aroundGetHttpMethod(
3434 return $ subject ->getMethod ();
3535 }
3636
37- }
37+ }
Original file line number Diff line number Diff line change 33 "description" : " Enabling cross-origin resource sharing (CORS) requests to Magento 2 API from configured Origin domain" ,
44 "homepage" : " https://github.com/splashlab/magento-2-cors-requests" ,
55 "type" : " magento2-module" ,
6- "version" : " 100.0.7 " ,
6+ "version" : " 100.0.8 " ,
77 "license" : [
88 " OSL-3.0" ,
99 " AFL-3.0"
1313 "source" : " https://github.com/splashlab/magento-2-cors-requests"
1414 },
1515 "require" : {
16- "php" : " ~7.1.3||~7.2.0||~7.3.0||~7.4.0||~8.1.0" ,
17- "magento/framework" : " *"
16+ "php" : " ~7.1.3||~7.2.0||~7.3.0||~7.4.0||~8.1.0||~8.2.0||~8.3.0" ,
17+ "magento/framework" : " *" ,
18+ "magento/module-webapi" : " *"
1819 },
1920 "autoload" : {
2021 "files" : [
You can’t perform that action at this time.
0 commit comments