Uber API - 价格估算需要 HTTPS? [英] Uber API - HTTPS needed for Price Estimates?

查看:35
本文介绍了Uber API - 价格估算需要 HTTPS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Uber 的 API 创建了一个 WordPress 插件,以便人们可以叫出租车到您的实际位置.

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

我正在考虑使用此处的端点集成价格估算 - https://developer.uber.com/v1/endpoints/#price-estimates - 我有一个解决方案,但在实施时遇到了一些问题.

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.

我在 Google Chrome 开发者工具中测试时遇到错误,该错误指出请求标头字段 Access-Control-Allow-Origin 不被 Access-Control-Allow-Headers 允许."

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."

我怀疑这是因为测试服务器不安全,因为应用程序源 ID 和重定向 ID 以 https://开头(因为我无法添加 http://).

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://).

我能否通过 http 访问价格估算?我正在使用 server_token 身份验证方式,因为我觉得这可能是最好的方式.

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 :)

推荐答案

Uber API 仅支持 HTTPS,并且永远支持 HTTPS.

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

这篇关于Uber API - 价格估算需要 HTTPS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆