how to set the request's mode to 'no-cors' javascript
const url = 'https://www. yammer.com/api/v1/messages/following.json';
const options = {
method: 'GET',
mode: 'no-cors',
headers: {
'Authorization': `Bearer ${process.env.REACT_APP_YAMMER_ACCESS_TOKEN}`,
}
};
fetch(url, options).then(function(response) {
console.log(response);
return response.json();
}).then(function(json) {
console.log(json);
});