Stats API - Invalid origin

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/`, opts)
    .then(res => {

I did fix it setting the origin header to null

1 Like