I'm trying to get a simple get request from a boardgame site, the link to request: https://www.boardgamegeek.com/xmlapi/boardgame/266192
In browser it works, in postman it works, but when I try httpClient.get with angular, even if I append header with
'Access-Control-Allow-Methods', 'GET'
and
'Access-Control-Allow-Origin', '*'
I still get the error:
Access to XMLHttpRequest at 'https://www.boardgamegeek.com/xmlapi/boardgame/266192' 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.