Backend code:
…
return fetch ( url + query_string + “&signature=” + sha256_sig , requestOptions )
. then (( result ) => {
if ( result.ok ) {
return result . json ();
}
});
…
frontend code:
…
export function baccountinfo_click ( event ) {
account_information($w ( “#iapikey” ). value , $w ( “#iprivatekey” ). value )
. then ( result => console . log ( result ));
}
Frontend doesn’t receive the json from the fetch in the backend. I’ve checked permissions on the front end page. Note: it is a members are page, I’m not sure if that will make a difference.
I have managed to log the fetch return in the backend no problems.
Help needed. Very frustrated.