Uber API - HTTPS needed for Price Estimates?

2019-08-12 01:51发布

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条回答
干净又极端
2楼-- · 2019-08-12 02:24

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

查看更多
登录 后发表回答