Cross-origin error

I’m working on local server. when try to pass header like this

app.request.setup({
headers: {
‘Client-Service’ : ‘frontend-client’ ,
‘Auth-Key’ : ‘simplerestapi’,
‘Content-Type’ : ‘application/json’,
‘User-ID’ : 1,
‘Authorization’ : ‘dab804f65820c054d99edb96bb61fd0c’,
}
})

it throws a cross domain error what was the issue. Headers already set on server-side i had cross-origin read blocking error.