You’re accessing the development server over https, but it only supports http.

When you encounter the error message “you’re accessing the development server over HTTPS, but it only supports HTTP,” it means that you are trying to access a development server using a secure HTTPS connection, but the server is configured to only support standard HTTP connections. In order to resolve this issue, you will need to switch your connection from HTTPS to HTTP.

Here is an example of how you can format a URL to use HTTP instead of HTTPS:

    
      // Replace 'https://' with 'http://' in your server URL
      const serverUrl = 'http://example.com';
    
  

By swapping “https://” with “http://” in the URL, you can ensure that you are connecting to the server using the correct protocol.

Read more interesting post

Leave a comment