In my own case I discovered that I wasn't including the "/" at the end of url, hence causing the error. When i included the .../api/users/register/ as aganist .../api/users/register it worked just fine as it ought to.