SSl error when using lib-jitsi-meet api

I’m getting this
I’m using the example code in the jitsi-meet and not the actual UI.
The jitsi UI is working fine but this is the error which I’m getting when I try with an custom UI.

Hey will you please tell me how did you solved this issue please?

Is ssl properly configured enabled in nginx? Are the certs installed in the right location?

I am using apache2 and a public IP for this.
Yes the certs are installed in the proper location.