Hello there.
First thing: show us the error.
Getting status code 400?
Probably a wrong setting of one of those (or maybe all):
ALLOWED_HOSTS
CSRF_TRUSTED_ORIGINS
CSRF_USE_SESSIONS
When working with microservice make sure the reverse-proxy/loadbalance is setting the right headers...
As example, my Nginx reverse proxy setup always set the follows headers:
proxy_set_header Host localhost; proxy_set_header ServerName localhost;
proxy_set_header Origin http://localhost;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-HostName $host;