version not working but at least the server is - missing next from the cors function was the problem