CDN pages get indexed

I have read a lot of posts around this and I am not sure what is the correct approach about this.
The problem is that for one domain and it’s normal indexed pages there are also many related cdn pages that have been indexed.

I understand that the canonical tag should be the solution, but then we have the problem of the different languages.
So, let’s set an example.
Our original domain is: Example Domain and the cdn domain is cdn0.example.com
Under this cdn domain there are subpages, like: cdn0.example.com/categories/typea and each one has different versions for every locale:
– cdn0.example.com/categories/typea?locale=en-EU
– cdn0.example.com/categories/typea?locale=es-ES
– cdn0.example.com/categories/typea?locale==fi-FI
So logically the canonical for all these above should be the: cdn0.example.com/categories/typea

But what about the original domain Example Domain.
How should all the previous be connected to the original one?

Maybe a robots file would be the solution after all?
cdn.yourdomain.com/robots.txt
With a parameter of : Disallow: /