Answer the question
In order to leave comments, you need to log in
AJAX fetch() pass JSON?
Hello. How to pass d POST JSON object to fetch()
dataValue = { value1: 1, value2: 2 }
const respond = await fetch( url, { method: type, body: dataValue, credentials: 'same-origin' } );
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question