File tree 3 files changed +15
-5
lines changed
3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 13
13
*/
14
14
class CorsCheck implements CorsCheckInterface
15
15
{
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 ;
16
25
17
26
/**
18
27
* Initialize dependencies.
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class CorsRequestOptionsPlugin
22
22
* Allow Options requests from jQuery AJAX
23
23
*
24
24
* @param Request $subject
25
- * @return void
25
+ * @return string
26
26
* @throws InputException
27
27
*/
28
28
public function aroundGetHttpMethod (
@@ -34,4 +34,4 @@ public function aroundGetHttpMethod(
34
34
return $ subject ->getMethod ();
35
35
}
36
36
37
- }
37
+ }
Original file line number Diff line number Diff line change 3
3
"description" : " Enabling cross-origin resource sharing (CORS) requests to Magento 2 API from configured Origin domain" ,
4
4
"homepage" : " https://github.com/splashlab/magento-2-cors-requests" ,
5
5
"type" : " magento2-module" ,
6
- "version" : " 100.0.7 " ,
6
+ "version" : " 100.0.8 " ,
7
7
"license" : [
8
8
" OSL-3.0" ,
9
9
" AFL-3.0"
13
13
"source" : " https://github.com/splashlab/magento-2-cors-requests"
14
14
},
15
15
"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" : " *"
18
19
},
19
20
"autoload" : {
20
21
"files" : [
You can’t perform that action at this time.
0 commit comments