I am making a request with fetch at the client side with this code:
var request = new Request(`http://ip:8080/click?url=${value}`, {
method: 'GET',
headers: new Headers({
"Content-Type": "application/json"
}),
});
fetch(request)
but when the browser makes the request, it automatically changes the URL with https protocol:
https://ip:8080/click?url=${value}
Note: the webpage has SSL encryption
Subsequently, I get this error on the webpage console: Failed to load resource: net::ERR_CONNECTION_CLOSED