Cross-Origin Request Blocked by stats API server

Moderators: Site Moderators, FAHC Science Team

Post Reply
avlouis
Posts: 1
Joined: Wed Feb 20, 2019 2:50 am

Cross-Origin Request Blocked by stats API server

Post by avlouis »

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!
bruce
Posts: 20910
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: Cross-Origin Request Blocked by stats API server

Post by bruce »

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.
Post Reply