Corbs answer

URL

http://webestetica.epizy.com/

Error Message

Cross-Origin Read Blocking (CORB) blocked cross-origin response https://infinityfree.net/errors/404/ with MIME type text/html.

Other Information

  $.ajax({
        method: 'POST',
        url: 'servicios_img.php', 
        data: {peticion: "traer_imagenes"}, 
        dataType:'json'
    }).done(function(resu) {
       
      
        $.each( resu , function(key, value){ 
             
            $("#container-servicios").append( 
                "<section onclick=InfoServPaq('Servicio_"+ value.id_servicio+"') id='Servicio_"+ value.id_servicio+"'>" +
                    "<a>"+ value.ser_titulo +"</a>" +
                "</section>"
            );
            document.getElementById('Servicio_'+ value.id_servicio).style.backgroundImage = "url('img/" + value.ser_source_principal + "')"; 
        });
    });

No error encountered…

Like the error message says, you’re sending ajax request to a file which doesn’t exist.
To me it works. Still having issues?

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.