Ah, that didn't work for me unfortunately.
POST https://chat.beachfront.domains/login
Flarum\Http\Exception\TokenMismatchException: CSRF token did not match in file /var/www/flarum/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php on line 47
Debug message from attempting login on chat.beachfront
. In my Caddyfile
:
route /login {
header {
Access-Control-Allow-Credentials true
Access-Control-Allow-Headers *
Access-Control-Allow-Methods *
Access-Control-Allow-Origin https://chat.beachfront
}
@options {
method OPTIONS
}
respond @options 204
}