File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
app/code/Magento/Signifyd/Controller/Webhooks Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 7
7
8
8
use Magento \Framework \App \Action \Action ;
9
9
use Magento \Framework \App \Action \Context ;
10
+ use Magento \Framework \App \Request \InvalidRequestException ;
11
+ use Magento \Framework \App \RequestInterface ;
10
12
use Magento \Framework \Exception \LocalizedException ;
11
13
use Magento \Signifyd \Api \CaseRepositoryInterface ;
12
14
use Magento \Signifyd \Model \CaseServices \UpdatingServiceFactory ;
21
23
*
22
24
* @see https://www.signifyd.com/docs/api/#/reference/webhooks/
23
25
*/
24
- class Handler extends Action
26
+ class Handler extends Action implements \ Magento \ Framework \ App \CsrfAwareActionInterface
25
27
{
26
28
/**
27
29
* Event topic of test webhook request.
@@ -136,4 +138,20 @@ public function execute()
136
138
$ this ->logger ->critical ($ e );
137
139
}
138
140
}
141
+
142
+ /**
143
+ * @inheritDoc
144
+ */
145
+ public function createCsrfValidationException (RequestInterface $ request ): ?InvalidRequestException
146
+ {
147
+ return null ;
148
+ }
149
+
150
+ /**
151
+ * @inheritDoc
152
+ */
153
+ public function validateForCsrf (RequestInterface $ request ): ?bool
154
+ {
155
+ return true ;
156
+ }
139
157
}
You can’t perform that action at this time.
0 commit comments