Hi. I don’t have a frontend server. I have created a plain html file that has javascript to connect to a database with this code:
const app = new Realm.App({ id: xxx' });
const credentials = Realm.Credentials.emailPassword('xxx@gmail.com', 'xxxx');
// Authenticate the user
const user = await app.logIn(credentials);
// `App.currentUser` updates to match the logged in user
console.assert(user.id === app.currentUser.id);
I get error ERR_CERT_COMMON_NAME_INVALID.
As there is no real website but an html file running on the browser I have no SSL certificate.
I have tried to host the html file in services like CloudFlare with the same result.
What can I do?
Thanks.