DiscourseConnect Won't Let Me Log Back In

The real error seems to be Can’t verify CSRF token authenticity. The answer was in this thread: Can't Login to Discourse - CSRF Token Authenticity

I added the following to my apache2.conf file:

RequestHeader set X-Forwarded-Proto https

From the error log:

Started POST "/session" for {my.ip} at 2021-08-07 11:45:54 +0000
Processing by SessionController#create as */*
  Parameters: {"login"=>"{me}", "password"=>"[FILTERED]", "second_factor_method"=>"1", "timezone"=>"America/Denver"}
Can't verify CSRF token authenticity.
  Rendered text template (Duration: 0.0ms | Allocations: 1)
Filter chain halted as :verify_authenticity_token rendered or redirected
Completed 403 Forbidden in 13ms (Views: 1.5ms | ActiveRecord: 0.0ms | Allocations: 898)

2 Likes