bgrnwd / fotmob

:soccer: An unofficial JavaScript/TypeScript client for the FotMob API
MIT License
137 stars 18 forks source link

CORS Issues #357

Closed russmatt closed 5 months ago

russmatt commented 2 years ago

Describe the bug Every API call is blocked by CORS policy

To Reproduce Steps to reproduce the behavior:

  1. Create a new Angular Project
  2. Install package
  3. Do any http call
  4. Error Access to XMLHttpRequest at 'https://www.fotmob.com/api/matchDetails?matchId=3917969' from origin 'https://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Expected behavior JSON result to be printed

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

ItamarShDev commented 8 months ago

This package is supposed to be used from the server. Maybe we should add it to the docs? @bgrnwd

bgrnwd commented 7 months ago

Yeah, let's add it

ItamarShDev commented 5 months ago

This issue can be closed. the readme says it is a backend library