The MapView gizmo isn't working any differently than the example you provided, although it is not easily understood without carefully studying the code due to the generalization.
Unfortunately, unless you have control over the external source, this will not be easy to resolve due to the Same Origin policy. Essentially, the external server needs to whitelist the domain your code is coming from via the
Access-Control-Allow-Origin header. Check out this post for a better understanding of same origin and CORS considerations:
This post indicates that what you are experiencing is not a bug, but expected behavior:
It seems that
preview.grid.unep.ch has been locked down to only accept requests from certain origins (perhaps inadvertently). Wish I could be more help.