Cross-Origin Request Blocked by stats API server
Posted: Wed Feb 20, 2019 3:08 am
I am trying to utilize the JSON stats API in a web page. Unfortunately, I am having trouble performing this cross-origin request as it is blocked by modern browsers unless the API server specifies the 3rd party domain in the "Access-Control-Allow-Origin" header. In addition, the HTTP method must be listed in "Access-Control-Allow-Methods" (GET, POST, etc). Would it be possible to configure the API server to allow HTTP GET requests from all domains? I believe this should satisfy modern browsers.
I am new to the forum (been folding for a while), so please let me know if there is a better way/place to address this issue.
Thanks!
I am new to the forum (been folding for a while), so please let me know if there is a better way/place to address this issue.
Thanks!