CORS support & other stuff necessary for login/registration