Uber API - HTTPS needed for Price Estimates?

柔情痞子 提交于 2019-12-13 02:38:29

问题


I use Uber's API to create a WordPress plugin so people can order taxis to your physical location.

I'm looking at integrating the Price Estimates using the endpoint here - https://developer.uber.com/v1/endpoints/#price-estimates - I've a solution but having a bit of problem implementing it.

I'm getting an error on testing which in Google Chrome Developer Tools which states "Request header field Access-Control-Allow-Origin is not allowed by Access-Control-Allow-Headers."

I suspect it's due to the fact that the testing server is insecure, as the app Origin ID and Redirect ID begins with https:// (as I'm unable to add http://).

Will I be able to access the price estimates over http at all? I'm using the server_token way of authentication as feel it's probably the best way to do it.

Any help would be gratefully received :)


回答1:


The Uber API only, and will only ever, support HTTPS.



来源:https://stackoverflow.com/questions/28420127/uber-api-https-needed-for-price-estimates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!