iquidus / explorer

An open source block explorer
BSD 3-Clause "New" or "Revised" License
750 stars 1.33k forks source link

CORS Policy for API #506

Closed schuesslerf closed 1 year ago

schuesslerf commented 1 year ago

Hello,

I tried following the description on issue #182 to enable CORS there to have another website being able to send XHTTP requests there...for a request to /ext/getmoneysupply, this worked.. however, when requesting the API, like /api/getnetworkhashps, then I still get a CORS error saying that is has been blocked... Do I have to enable it seperately for the API somewhere?