Can external APIs be called using fetch api? #Codegeist

According to docs: https://developer.atlassian.com/platform/forge/runtime-reference/fetch-api/

The fetch API can be called to fetch data from an external API. Just confirming this is the case for forge apps - so forge apps can have a separately hosted backend that can be used to do additional processing (e.g do ML / DL) and show the results in a Forge app?

Yes, that is possible. But you have to explicitly specify the URLs that you want to access in your app’s manifest:

https://developer.atlassian.com/platform/forge/manifest-reference/permissions/#external-permissions

4 Likes