failed to load resource: net::err_http2_protocol_error | One possible solution

Date Published: 23/09/2020 Published By: JaiSchool

I got this error in console because I was sending data with commas through get parameter in the PHP page.

//WRONG CODE
var rgb = "255,255,255";
$.ajax({
url : "example.php?rgb="+rgb
});
//RIGHT CODE
var r = 255;
var g = 255;
var b = 255;
$.ajax({
url : "example.php?red="+r+"&green="+g+"&blue="+b
});

Publish A Comment

Leave a Reply

Your email address will not be published. Required fields are marked *