E-mail opt-in breaks on mapped domain

When an opt-in is used on a mapped domain, it doesn't allow to gather leads. There's a CORS error in the console.