explorer icon indicating copy to clipboard operation
explorer copied to clipboard

cors error in chrome

Open realcodywburns opened this issue 7 years ago • 7 comments

Cannot display some pages because: Failed to load http://127.0.0.1:3000/stats: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access.

realcodywburns avatar Jan 11 '18 01:01 realcodywburns

http://drawpie.com/etc_hash_rate_api seems to be the culprit

@elaine , can we math out the implied network hash for each block based on its blocktime and difficulty?

realcodywburns avatar Jan 11 '18 01:01 realcodywburns

yeah, it's better to do this all on the same server.... cc: @kimisan

elaineo avatar Jan 11 '18 18:01 elaineo

ok, i will fix it and update node.js script by this week.

kimisan avatar Jan 11 '18 18:01 kimisan

update some info, since i update the new Geth. The DB has just synced 50%, sorry for delay.

kimisan avatar Jan 14 '18 17:01 kimisan

Is (http://drawpie.com/etc_hash_rate_api) supposed to help draw w3.js pie charts? (http://bl.ocks.org/juan-cb/1984c7f2b446fffeedde)

Just trying to see if there has been any update since it seems like the link is broken. :)

GeoSkyGPS avatar Feb 14 '18 20:02 GeoSkyGPS

late to the party, but this chrome plugin Moesif CORS is what I use when developing locally and need to bypass the localhost cors issues

mikeyb avatar Oct 18 '18 15:10 mikeyb

currently, all chart related datas are generated on the fly.

hackmod avatar Oct 19 '18 09:10 hackmod