Azure功能:强制使用HTTPS [英] Azure Functions: Force HTTPS

查看:76
本文介绍了Azure功能:强制使用HTTPS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Azure Functions是否可以通过HTTPS强制连接?

Is there a way with Azure Functions to force connections to be over HTTPS?

我没有在应用程序设置"中看到它,也没有看到对Azure功能的web.config的引用.

I'm not seeing it in the App Settings, and I don't see any reference to web.config for Azure Functions.

推荐答案

2017年11月更新

在Azure门户中,转到您的功能应用程序.

In the Azure portal, go to your function app.

平台功能>自定义域>将仅HTTPS 切换为打开".

使用HTTP的任何人都将收到 301永久移动,并将其重定向到HTTPS端点.您实际上不需要添加新的主机名/域即可切换此功能.这似乎与消费计划和应用服务计划均适用.

Anyone using HTTP will receive a 301 Moved Permanently and be redirected to the HTTPS endpoint. You do not need to actually add a new hostname/domain to toggle this feature. This appears to work with both consumption and app service plans.

这篇关于Azure功能:强制使用HTTPS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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