Site
Home / Forum / 3rd Party Projects / CORS Error Livescores v2

CORS Error Livescores v2


Posted: 01 Aug 2024 19:22
cydalby


Posts: 346
Joined: 2020

Hey guys,

Haven't posted for a while but have started working on my site www.cysports.com again.

I've moved a lot of my calls over to the new api endpoints but I seem to be getting CORS blocked from the new v2 livescores endpoint.

Is there anything server side which is blocking requests? I can make the request with postman etc, but from my deployed site it gets CORS blocked.

Endpoint -
https://thesportsdb.com/api/v2/json//livescore/Soccer

Thanks

zag
Posted: 02 Aug 2024 07:09

Ovokx

Posts: 1,768
Joined: 2020

Hey, welcome back!

Take into account that now we have a restriction of 100 requests per minute which should display a 429 response. IDK if this could affect you

Posted: 02 Aug 2024 13:13

zag


Posts: 3,511
Joined: 2020

Welcome back, mate, we missed you

CORS should work but yeh check the rate limiter

Posted: 02 Aug 2024 20:54
cydalby


Posts: 346
Joined: 2020

Thanks guys.

Definitely not seeing a 429, looks to hit CORS error before it even gets a response code. Might be something client side which is misconfigured, will dig a bit further.

Pretty confident it’s not rate limited as I can hit the same endpoint directly and through postman at the same time

Posted: 06 Aug 2024 08:21
cydalby


Posts: 346
Joined: 2020

All working now btw

zag

Who is Online?

In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm

About Us

Discussion forum for TheSportsDB.com site and related topics

Rules

- Be Polite
- Respect other users
- Always post log files with issues
- Try to be helpful
- No Piracy discussion

Showing 0 to 5 (Total: 5)