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!
Cross-Origin Request Blocked by stats API server
Moderators: Site Moderators, FAHC Science Team
Re: Cross-Origin Request Blocked by stats API server
Joseph suggested:
They should use the new API at:
https://api.foldingathome.org/
The stats API will be deprecated. The above API implements CORS but
currently only allows connections from apps.foldingathome.org. You can
get around this using JSONP requests.
Posting FAH's log:
How to provide enough info to get helpful support.
How to provide enough info to get helpful support.