I have running Docker with docker run -p 4443:4443 --rm -e OPENVIDU_SECRET=MY_SECRET openvidu/openvidu-server-kms:2.15.0
I have accepted self signed sertificate.
App is running on React.
But every time I open website it always says that there is problem with certificate and that I have to accept it.
I did tried demo of React and copy pasted the same component and on your demo everything is okey but on my app it always says that is wrong certificate.
So I found a fix. Reason was because I had axios interceptors which changes/adds to every request user token and additional headers (one of them was: config.headers = { "Content-Type": "application/json", };
). So that was the reason why changing request headers there would missing data in header and openvidu server would see this missing data and prompt a missing certificate. Default axios header for openvidu was: headers: { Authorization: 'Basic ' + btoa('OPENVIDUAPP:' + this.OPENVIDU_SERVER_SECRET), 'Content-Type': 'application/json', },