Embed I-frame with secure ip-address as secure Home assistant ip-address in docker containers possible?

I have Home- assistant core and grafana as two seperate containers in docker.
Both are accessible with two ssl addresses (Let’s encrypt certificate)
Because both containers have the same local ip-adress I wonder if it should be possible to have an I-frame or panel with an url like https://xxxx.duckdns.org:1234, while home assistant has an url like https://aaa.duckdns.org:5678 ?

The I-frame now shows an error saying https://aaa.duckdns.org refuses to connect. At some point I can understand this because it is something like a circular “thing”. But I hope someone succeeded in embedding a grafana panel while using a secure url.

You can set up charts as cameras instead of frames.

thank you for your quick answer, however in grafana in synology docker there is no option to create a link to a rendered image. I did not read everything in the links yet, so I will see if there is a way to achieve that.

But it still does not answer my question …should it be possible to link to the same ip-address as the address of Home Assistant. So more suggestions are welcome:)

Solved:
The only thing I had to do, was adding the next setting to the environment variables of Grafana:
GF_SECURITY_ALLOW_EMBEDDING: ‘true’