Azure Lake Store:响应标头中缺少Access-Control-Allow-Origin [英] Azure Lake Store : missing Access-Control-Allow-Origin from response header

查看:80
本文介绍了Azure Lake Store:响应标头中缺少Access-Control-Allow-Origin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当尝试调用我的Azure Data Lake存储空间并列出所有目录时,它在丢失CORS期间无法返回任何结果.我找不到任何方法为Azure DatalakeStore提供CORS策略(不是与Azure存储相同)

When trying to call my azure data lake store space and list all directories , It fails to return any results during to missing CORS .The problem that I can't find any way to give the Azure DatalakeStore the CORS policy ( Not the same as Azure Storage )

对此有任何解决方法或解决方案吗?

Any workaround or solution for this ?

推荐答案

Azure中的某些服务仍不提供CORS支持(如DocumentDB,并且您似乎也对ADLS感到满意).在azure提供相同功能之前可以尝试的一件事是使用API​​M(Azure API管理网关).我尝试过在APIM上安装DocumentDB REST API的地方,并在客户端使用了APIM的端点,并且可以正常工作.检查以下链接以设置APIM和启用CORS

Some of the services in Azure still doesn't have CORS support (like DocumentDB and as you have experienced seems for ADLS as well). One thing that can be tried before the same is provided by azure is to use APIM (Azure API Management Gateway). I tried this where i have on-boarded DocumentDB REST API's on APIM and used the end-point from APIM on client side and it worked. Check the links below for setting up APIM and enabling CORS

https://azure.microsoft.com/en-us/services/api-management/

https://msdn.microsoft.com/library/azure/7689d277-8abe-472a-a78c-e6d4bd43455d#CORS

这篇关于Azure Lake Store:响应标头中缺少Access-Control-Allow-Origin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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