Why not put the headers in post request?

Do as written in the dock
var myHeaders = new Headers();
myHeaders.append("MyCustomHeader", "1111111");

var myInit = { method: 'GET',
 headers: myHeaders,
 mode: 'cors',
 cache: 'default' };

var myRequest = new Request('https//myurl/method', myInit);

fetch(myRequest)

In response I get BAD request, and the console still
Response for preflight has invalid HTTP status code 429
How to defeat this crap?
June 10th 19 at 15:12
1 answer

Find more questions by tags JavaScript