1

This is the code i am working with in visual studio.

componentDidMount(){
         axios.get('https://localhost:9090/teams/get/all')
         .then(response=>{
             console.log(response)
             this.setState({posts:response.data})
         })

         .catch(error=>{
             console.log(error)
         })
     }

xhr.js:178 GET https://localhost:9090/teams/get/all net::ERR_SSL_PROTOCOL_ERROR.

This one is the error i am getting everytime.

pratyusha k
  • 121
  • 2
  • 5

1 Answers1

0

You could generate a self signed SSL certificate (e.g. here)

... But you're most probably better off with accessing http://localhost:9090/teams/get/all (note the absence of s).

Lior Pollak
  • 3,362
  • 5
  • 27
  • 48