I have a proxy server to fix CORS, but I’m not able to get the API response, I’m having this response every time.
{
"Invalid origin: localhost:3000"
}
My code:
const opts = { headers: { 'Authorization': 'Bearer token' } }
fetch(`http://localhost:8080/https://sentry.io/api/0/projects/aaaa/bbbb/stats/?since=1524096000&until=1524182399`, opts)
.then(res => {
console.log(res)
})