Iframe api script for self hosted producing error 'net::ERR_CERT_COMMON_NAME_INVALID'

my self hosted Jitsi Meet works fine , I have also enabled lets_encrypt. But when I am adding the script in html file it produces error in console ‘net::ERR_CERT_COMMON_NAME_INVALID’.

What script are you adding? And to what HTML file?

I am adding iframe script to my another html file to use api = new JitsiMeetExternalAPI(domain, options)
as mentioned in document.

I have replaced ‘your-domain’ with may domain.
the script tag is not visible in this post.

The error you’re reporting is due to an invalid certificate. So, I’m a bit puzzled that you’re saying your deployment works fine. Are you using a self-signed certificate somewhere? When you say you “have also enabled lets_encrypt”, what do you mean?

I am using Jitsi docker and made changes to .env as mentioned in document.

it works fine when I directly visit my domain.
but shows error on console as I have described above.

Ok, I’m not really familiar with Docker. Don’t you need to actually generate a letsencrypt certificate with docker?

Either way, this is an access error - either resulting from an invalid certificate or a firewall.

Can you test the script with meet.jit.si and see if that works for you?

it works fine with meet.jit.si