spatie / mailcoach-support

Questions and support for Mailcoach
https://mailcoach.app
31 stars 2 forks source link

post from external form : return 419 page expired #224

Closed electronick86 closed 4 years ago

electronick86 commented 4 years ago

Hello,

I'm trying to implement a subscription form from an external website (from a wordpress).

I receive a message "419 expired" as the request doesn't contains a csrf token.

Should this setup works? Is it possible to disable the csrf token verification on this request?

electronick86 commented 4 years ago

should I do that :

class VerifyCsrfToken extends Middleware
{
    /**
     * The URIs that should be excluded from CSRF verification.
     *
     * @var array
     */
    protected $except = [
        'mailcoach/subscribe/*',
    ];
}