Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

180
Visualizações
Adblock destroys my site on react js (Adblock blocks all fetch and axios requests)

I made a course project on React JS and uploaded it to the hosting. After I sent my site to a friend, he said that almost nothing works for him, either eternal downloads, or the site does not return validation results, and others. When I started to understand, I realized that he had errors "Failed to load resource: net::ERR_BLOCKED_BY_CLIENT", after disabling the Adblock extension, all the functionality of the site began to work properly. In my question, there is no question of trifles, such as blocking images, absolutely all requests to the server are blocked for me. My site is designed so that on the front there is only a visual and requests for the back, and on the back, all user actions are processed and the result is returned, on which the actions of the front depend, you can see for yourself, "site" that I have constant errors in the console on the client side, and when you disable the ad blocker, everything starts working. My code is quite large, but if you have suspicions about some specific code sections, then I can provide them. Below is one of the usual requests to the server, most of them are, there are a couple more axios requests, but there are very few of them, but they are also blocked. I also saw similar problems with ajax requests on other threads, but I never saw a specific reason for all the blocks.

        var form = new FormData()
    form.append('JSONPARSE',true);
    fetch("http://g908020p.beget.tech",{
        method: 'POST',
        body: form
    })
    .then(response => response.text())
    .then(response => {
        var json = JSON.parse(response)
        setCatalog(json.items)
        setLoading(true)
        console.log(json)

    })
    .catch(error => {
        console.log(error)
    })
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda