Fix domain in submission endpoint to work in dev mode