Hi @BearAndBox,
You may be able to automate this with the Management API. Otherwise you would need to use wildcards which are not supported and generally a Bad Idea.
Ref: How come "Allowed Web Origins" does not allow wildcards? - #26 by nicolas_sabena
Cheers,
Mark