I have a code in javascript that sends an id by POST, to a php file (vs 7.2.9) that consults with sql to a DB, and I need the html code it generates to make a report with dompdf
Javascript code
let cedu = snapshot.val().cedula;...
I am a bit stuck with this code and I can not find the solution, what I want to do is that when loading the sun the "loadWithParameter" function is called and generates elements from javascript and loads data from a rest api. At the end you also...
I'm calling an API with a fetch, when I make the call I get the following:
Failed to load link : Response to preflight request does not pass access control check: No 'Access-Control-Allow- Origin 'header is present on the requested resour...
I'm trying to insert objects into an array. The objects I want to insert come from another object that I get by making an asynchronous call using fetch ().
let log = console.log;
let apiRequest1 = fetch('http://s3.amazonaws.com/logtrust-s...
I have a api rest that works perfectly with postman, but when I consume it in the client with a fetch, it returns a code 304
NOTE: This happens to me when I send the token in the headers, if I do not send the token everything works normal
...
$(document).ready(function(){
$('#idBoton').click( function(){
var order_val =$('#verificacion').val();
var order_name = $('#name').val();
var order_cedula = $('#cedula').val();
v...
I would like to destructurize a json to get the name, email and address of the api, but only print the json on the console,
does not work correctly <p>{props.nombre}</p> , what is my error or how can I get those v...
I have the following code where you asicronically sent an object file ..
This is the function with which I capture the File object
handleChangeAudio: (event) => {
var arrayAudio = event.target.files;
function readerF...
I am programming in react-native an app that consumes services, when the service is consumed with POSTMAN if it works when sending the header and body, however when I try to consume with fetch and react-native axios it returns me status 406 no n...