Face API - CORS错误 [英] Face API - CORS error

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

问题描述

Hi Devs,

我在1-2天前成功获取了Face API数据。现在,我收到了CORS错误。我读了几个线程,其中API开发人员说他们已经解决了这个问题,但是今天突然我正面临着这个问题。

I was successfully getting Face API data 1-2 days before. Now, I'm getting CORS error. I read few threads where API devs said that they fixed that issue, but suddenly today I'm facing it.

第一个错误:  无法加载资源:服务器响应  ; https://api.projectoxford.ai/face/v1.0/detect?returnFaceId = true& returnFaceLandmarks = false& returnFaceAttributes = age%2Cgender%2Csmile%2CfacialHair%2CheadPose 状态
为401(Access拒绝)

1st Error: Failed to load resource: the server responded https://api.projectoxford.ai/face/v1.0/detect?returnFaceId=true&returnFaceLandmarks=false&returnFaceAttributes=age%2Cgender%2Csmile%2CfacialHair%2CheadPose with a status of 401 (Access Denied)

第二个错误:  XMLHttpRequest无法加载https://api.projectoxford.ai/face/v1.0/detect?returnFaceId=true& returnFaceL ... KS =假放; returnFaceAttributes =年龄%2Cgender%2Csmile%2CfacialHair%2CheadPose。请求资源上没有'Access-Control-Allow-Origin'标头是
。因此不允许来源'http:// localhost:2121'访问。响应的HTTP状态代码为401.

我是否遗漏了某些内容或者您身边有问题?

Did I miss something or it is problem from your side?

如果您想要代码来调查此问题,请与我们联系。

Let me know if you want code to investigate this issue.

很高兴收到您的回复!

这篇关于Face API - CORS错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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