Realized OAuth was disabled and regular user login was enabled, switched this to fix the issue with the 401 UNAUTHORIZED response when requesting from JS applications;