Infinite redirect during first admin creation

And check the cors section of docs