Calling azure function from teams custom app.

KristapsDruva-4358 101 Reputation points
2021-06-14T12:34:32.183+00:00

Hello!

i'm trying to call an azure function from my custom MS teams app, but it responds with an error:
105350-mstsc-6lokvpaajf.png

My code looks like this:
105421-mstsc-3v645skzty.png

The azure function works fine if i call it from postman or any other API tester.

What am i missing to make this work?
Any help would be appreciated, thanks in advance.

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,207 questions
0 comments No comments
{count} votes

Accepted answer
  1. KristapsDruva-4358 101 Reputation points
    2021-06-14T13:47:00.583+00:00

    Fixed the issue by enabling CORS with the wild card "*" for my Azure Functions app.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.