Azure Functions: Force HTTPS

后端 未结 2 1282
北荒
北荒 2021-02-07 12:18

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

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

相关标签:
2条回答
  • 2021-02-07 12:49

    I don't think there is a way today, but I could see making a case for enforcing this globally (or at least as an option).

    Please open an issue https://github.com/Azure/azure-webjobs-sdk-script/ so it can get properly tracked.

    0 讨论(0)
  • 2021-02-07 13:06

    Update November 2017

    In the Azure portal, go to your function app.

    Platform features > Custom Domains > toggle HTTPS Only to 'On'.

    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.

    0 讨论(0)
提交回复
热议问题