You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Blockchain commons currently controls the domain spotbit.info, but it is only set up to simply redirect to the github repo page. Eventually Spotbit will need a proper website, including all documentation, a list of servers available, an icon / logo of some sort, and an FAQ.
A simple github pages site would be a good solution for this.
Potential future intern side project?
The text was updated successfully, but these errors were encountered:
I've created two things. On the one hand, a javascript script that uses ajax to read the spotbit now api every 15 seconds and update the graph. On the other, a very simple proxy script in PHP that masks access to port 5000 and returns the json output. Due spotbit runs on http and port 5000 when I try to access API I get an error by CORS policy.
Error: (Access to fetch at from origin 'http://localhost' 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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.)
I've tried using no-cors option on ajax api call or adding this rule (Header add Access-Control-Allow-Origin ) on .htaccess file without success. Meanwhile I've opted by create the simple proxy script that mask the port and returns the json output.
If later spotbit can be accessed by WebSocket we just have to modify a few javascript lines and draw the charts.
Other option could be run spotbit on https and the call to the api will work even it is listening on 5000.
Blockchain commons currently controls the domain
spotbit.info
, but it is only set up to simply redirect to the github repo page. Eventually Spotbit will need a proper website, including all documentation, a list of servers available, an icon / logo of some sort, and an FAQ.A simple github pages site would be a good solution for this.
Potential future intern side project?
The text was updated successfully, but these errors were encountered: