provable-things / ethereum-api

Provable API for Ethereum smart contracts
https://docs.provable.xyz/#ethereum
MIT License
800 stars 428 forks source link

Access-Control-Allow-Origin #64

Closed MaHu6 closed 6 years ago

MaHu6 commented 6 years ago

How to access APIs with Access-Control-Allow-Origin issues?

D-Nice commented 6 years ago

The computation datasource is your best bet to accomplish this, assuming you're not able to add allowable ones yourself. You should be able to proxy from the origin needed programmatically with that datasource, by constructing a docker container that achieves it.