thgmhz / bus-promise

:oncoming_bus: Biblioteca que busca informações em tempo real da frota de ônibus da SPTrans na cidade de São Paulo.
MIT License
61 stars 11 forks source link

Add browser support #6

Closed thgmhz closed 7 years ago

thgmhz commented 7 years ago

The SPTrans API doesn't support cross-origin requests. Therefore, a way to resolve that problem is to create a heroku service that will receive a request and send it to SPTrans to receive the response data and then send it back to the browser.