Uber API - HTTPS needed for Price Estimates?

2019-08-12 01:49发布

问题:

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.