CSRF problem in development with 'Discourse OpenID Connect' plug-in

Yeah this would be my first thought as well. It’s important the authentication flow starts and ends on the same port, otherwise the session may be different.

If you boot Rails and Ember-CLI together via bin/ember-cli -u, then things should be automatically configured for you. But if you’re starting them separately, make sure you set the DISCOURSE_PORT=4200 environment on the Rails server so that everything lines up correctly.