简体   繁体   English

由于防火墙,Chrome 在 Azure 上没有加载/阻止 PDF Url

[英]Chrome not loading/blocking PDF Url on Azure blob due to firewall

When linking to a pdf ('https://xxxx.blob.core.windows.net/public/xxxx.pdf') hosted on a blob in Azure, Chrome (97.0.4692.71) either gets stuck continuously loading or it eventually resolves to the error in the image below 'AccountRequiresHttps'.当链接到托管在 Azure 中的 blob 上的 pdf('https://xxxx.blob.core.windows.net/public/xxxx.pdf')时,Chrome(97.0.4692.71)要么卡住,要么最终解决加载问题到“AccountRequiresHttps”下方图片中的错误。 The link coming from the page has it linked using 'https'.来自页面的链接使用“https”链接。 It looks like it's a firewall (or ad blocker) issue because when testing on another computer without the firewall it resolves fine.看起来这是一个防火墙(或广告拦截器)问题,因为在另一台没有防火墙的计算机上进行测试时,它可以很好地解决。 Other browsers (Safari and Firefox) with or without the firewall also resolve fine.其他有或没有防火墙的浏览器(Safari 和 Firefox)也可以正常解析。 Is there anything we can do to get around the firewall?我们能做些什么来绕过防火墙吗? Why is it just the Chrome browser?为什么它只是 Chrome 浏览器? Disabling firewall isn't really an option for client.禁用防火墙并不是客户端的真正选择。

AccountRequiresHttps AccountRequiresHttps

You need to enable Insecure transfers in the Configuration of your Storage Account.您需要在存储帐户的配置中启用不安全传输。 To do so,为此,

  1. Go to your Storage Account (top level) in Azure portal Go 到 Azure 门户中的存储帐户(顶级)
  2. Go to SettingsConfiguration Go 到设置-配置
  3. Set “ Secure transfer required ” to “ Disabled将“需要安全传输”设置为“禁用
  4. Click Save点击保存
  5. Restart and Retry to access the URL.重新启动并重试以访问 URL。 The file can now be accessed.现在可以访问该文件。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM