Forgot to add rest framework and CORS to server.