Cannot connect in Neo4j via web application

Hey guys, how are you?

I developed this application for study purposes and right now I'm using the front-end application to connect with Neo4j via the user's browser. I know that it's not a best practice at all.

As you can see in the link above, the application works fine when I define a connection with the Sandbox. But, unfortunately, I can't connect using the Neo4j Aura Free Tier. When I look to the console I can read the following error:

neo4jerror: WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver

I can't understand why it is happening, because I have a TLS Certificate associated with my domain on AWS CloudFront. I tried everything, but I can't figure out why this is happening.

Again, it works perfectly fine using the Sandbox but when I migrate to Aura Free Tier it suddenly stop works.

The only thing I have notice is the connection string:

  1. Sandbox uses bolt and bolt+s
  2. Aura uses neo4j+s

Could someone please give me some light?

When you are testing this and get the error is your web app loaded over https? Using the neo4j+s protocol via a connection from a web browser will result in a secure websocket (wss) request which in most browsers will be required to be loaded on a web page with ssl / https enabled.

Hi lyonwj, thank you for your answer.

Yes, the web app is loaded over https connection. It is accessed through https://cosmovisao.online.