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 Azure Function and sends mail ( code is written in Azure Function in C# ).
What I Did :
I took the textbox value and called the Function via AJAX but it doesnt hit at all. It sends back 400 Error Code.
All i want is to hit the function using Javascript. Because i just have a plain HTML page and JS is the only means with which i can communicate.
This is the Function URL
it expects a parameter 'name' and i checked it by pasting in the browser like this
This is what i found in firefox
Please let me know if you need any more information