Javascript Fetch API: header params not working
问题 This is my sample request: var header = new Headers({ 'Platform-Version': 1, 'App-Version': 1, 'Platform': 'FrontEnd' }); var myInit = { method : 'GET', headers: header, mode : 'no-cors', cache : 'default' } fetch('http://localhost:3000/api/front_end/v1/login', myInit) .then(res => { console.log(res.text()) }) When I debug, I see that this request is sent successfully to server, but server hasn't received header params (in this case is Platform-Version , App-Version and Platform ). Please