opensea-js icon indicating copy to clipboard operation
opensea-js copied to clipboard

cors error while fetching events

Open rapendivya opened this issue 4 years ago • 6 comments

i'm getting cors error

'https://api.opensea.io/api/v1/events?account_address=0x99a901abb995f849b2b12b01e46f4d45ae50dd47&event_type=successful&only_opensea=false&offset=0&limit=300' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

rapendivya avatar Jan 20 '22 18:01 rapendivya

Same here.

davidthomasparks avatar Jan 20 '22 21:01 davidthomasparks

Also getting this.

chrisco512 avatar Feb 08 '22 10:02 chrisco512

I'm getting this too, CORS errors when trying to fetch from the assets endpoint.

smsithlord avatar Feb 10 '22 13:02 smsithlord

Are you using a valid API key? If you don't have one you can apply here: https://docs.opensea.io/reference/request-an-api-key

esteban-OpenSea avatar Apr 15 '22 00:04 esteban-OpenSea

Also check this solution: https://github.com/ProjectOpenSea/opensea-js/issues/285#issuecomment-1008575614

esteban-OpenSea avatar Apr 18 '22 22:04 esteban-OpenSea

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.

github-actions[bot] avatar May 24 '23 04:05 github-actions[bot]