question

KristapsDruva-4358 avatar image
0 Votes"
KristapsDruva-4358 asked KristapsDruva-4358 answered

Calling azure function from teams custom app.

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.


office-teams-app-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

KristapsDruva-4358 avatar image
0 Votes"
KristapsDruva-4358 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.