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
Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
0 comments No comments
{count} votes

Answer accepted by question author
  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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.