jest cors mock heasder origin code example
Example: nock CORS error
fetchNockProject = nock($API)
.defaultReplyHeaders({ 'access-control-allow-origin': '*' })
.get('/projects/1')
.reply('200', project);