I am relatively new to programming and especially using APIs.
I am trying to add Betfair odds to my website, but when trying to access the API via ajax I get this response
XMLHttpRequest cannot load https://api.betfair.com/exchange/betting/json-rpc/v1. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://podosfairaki.dev' is therefore not allowed access. The response had HTTP status code 400.
btw the origin is a local dev address
am I doing something wrong? do I have to wait for Betfair to approve my request to use Betfair API commercially? and if so, will i be able to get access to the app from my local origin?
I am trying to add Betfair odds to my website, but when trying to access the API via ajax I get this response
XMLHttpRequest cannot load https://api.betfair.com/exchange/betting/json-rpc/v1. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://podosfairaki.dev' is therefore not allowed access. The response had HTTP status code 400.
btw the origin is a local dev address
am I doing something wrong? do I have to wait for Betfair to approve my request to use Betfair API commercially? and if so, will i be able to get access to the app from my local origin?


Comment