Qualsiasi richiesta POST a /webhooks/mailgun restituisce un HTTP 422 e i log del server mostrano un errore ActionController::InvalidAuthenticityToken. Questo è stato testato su una nuova installazione senza plugin.
Questo è iniziato intorno a metà maggio, a giudicare dai log del mio forum principale.
pfaffman
(Jay Pfaffman)
30 Maggio 2022, 11:56am
2
Sei sicuro che la chiave API sia valida?
Sì, ho controllato la chiave ed è sicuramente valida.
Non credo davvero che abbia a che fare con la validità della chiave (a meno che una chiave non valida non causi un errore csrf per qualche motivo)
znedw
(Zach Nedwich)
10 Giugno 2022, 12:55am
6
david
(David Taylor)
13 Giugno 2022, 2:38pm
8
Grazie per la PR @Wolftallemo - l’ho appena unita e ho aggiunto alcune informazioni aggiuntive nel messaggio di commit:
committed 02:36PM - 13 Jun 22 UTC
The `WebhookController` inherits directly from `ActionController::Base`. Since R… ails 5.2, forgery protection has been enabled by default. When we applied those new defaults in 0403a8633bdedfe497ec3e2fe5d03e17940d6f16, it took effect on this controller and broke integrations.
This commit explicitly disables CSRF protection on these webhook routes, and updates the specs so they'll catch this kind of regression in future.
6 Mi Piace
david
(David Taylor)
Chiuso
20 Giugno 2022, 7:00am
9
Questo argomento è stato chiuso automaticamente dopo 6 giorni. Non sono più consentite nuove risposte.