Call Azure Function from Javascript

前端 未结 2 1531
你的背包
你的背包 2021-01-18 18:32

I have a simple HTML page which has a Textbox and a Submit Button. I have a Azure Function which when hit takes in the content of the textbox, which we should send to the Az

2条回答
  •  渐次进展
    2021-01-18 19:17

    This is definitely a CORS related issue. Luckily, it's easy to configure CORS for Function Apps in the portal. Just navigate to your Function App and then select Platform Features:

    Select the CORS option under API which will take you to a screen where you can add the hostname of your clientside application:

提交回复
热议问题