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

221
Visualizações
jquery ajax json error 'provisional headers are shown'

I cant get my json data even in a simple way using the jquery api example and as a result i have only 2 console logs before and after request. I used local host denwer and xampp for test. Turn off all of my extensions, because i have an idea it was adblock blocking my request... P.S. sorry for bad English

{
	"articles": [
			{
				"id": 1,
				"name": "How to build a website"
			},
			{
				"id": 2,
				"name": "Reading json with jquery"
			},
			{
				"id": 3,
				"name": "Learning javascript"
			},

	]
}
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>JSON</title>
	<script src="js/jquery-3.2.1.js"></script>
	<script>
		console.log('before request');
		$.getJSON( "ajax/articles.json", function( data ) {
			console.log('success');
			console.log(data.articles);
		});
		console.log('after request');
	</script>
</head>
<body>
	
</body>
</html>

enter image description here

over 4 years ago · Santiago Trujillo
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