Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nock CORS error

fetchNockProject = nock($API)
                   .defaultReplyHeaders({ 'access-control-allow-origin': '*' })
                   .get('/projects/1')
                   .reply('200', project);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #nock #CORS #error
ADD COMMENT
Topic
Name
7+9 =