Allow CORS for the apex domain and all of its sub domain

Is there any way I can support all subdomain in the CORS config?