Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

196
Vistas
How do i hide request API URL on browser debugging tool at network tab while ajax call?

I want to send a secure request to the targeted API endpoint and don't want to let the browser to track the requested API URL in browser debugging tool. Is there any way to decode the API requested URL so that the URL will not be shown in the browser debugger network tab?

I am using pyton django framework.

Ajax

function Approve(camp_id, updated)
{
    if (updated === 1){
    var payload = {'campaign_status': 5}
    }
    else{
    var payload = {'campaign_status': 1}
    const  token = '{{csrf_token}}';
    }
    $.ajax(
        {
          url: `https://api.example.com`,
            
            data:{
                camp_id:camp_id
            }
            type:"PUT",
              headers:{"Authorization": `Bearer ${token}`,, "csrfmiddlewaretoken": token },
            contentType: "application/json",
            data: JSON.stringify(payload),

            success: function(response, xhr)
            {
                window.location.reload();
            },
            error: function(response, xhr)
            {
                console.log(response)
            }
        }
    );
}

enter image description here

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

i have solved this problem by handling my api call via django view, rather than with ajax, final code will look like

Ajax:

function Approve(camp_id, updated)
{
    if (updated === 1){
    var payload = {'campaign_status': 5}
    }
    else{
    var payload = {'campaign_status': 1}
    const  token = '{{csrf_token}}';
    }
    $.ajax(
        {
          url: `approve/edit`,// django view url
            
            data:{
                camp_id:camp_id
            }
            type:"PUT",
              headers:{"Authorization": `Bearer ${token}`,, "csrfmiddlewaretoken": token },
            contentType: "application/json",
            data: JSON.stringify(payload),

            success: function(response, xhr)
            {
                window.location.reload();
            },
            error: function(response, xhr)
            {
                console.log(response)
            }
        }
    );
}
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda