RocketChat version: 0.64.1
When i do POST request to /api/v1/login with valid credentials. I've got HTTP 500 error

I've got same issue when i configured CORS properly and make request from my js app.
Then i've got OPTIONS 200 (Access-Control-Allow-Origin is not same as i configured in CORS RocketChat options in administration panel https://localhost:8080) and then get HTTP 500 error

piece of my application code
#8404