I'm trying to do a read in JSON, and result what I want in a div but my console is returned the following error,
XMLHttpRequest cannot load
JSON file:
{"content":{"nome":"Josimara","pais":"brasil"}}
HTML
<script type="text/javascript">
$(function() {
$.get("arquivo/json", { },
function(data){
$("#nome").html(data.nome);
}, "json");
});
</script>
<div id="nome"></div>
What could be the error?