This topic describes the reason why a public endpoint of an HTTP trigger cannot return an .apk file and provides solutions.
Problem description
A 400 error with the error code ApkDownloadForbidden is returned when you use a public endpoint of an HTTP trigger (format: https://[subdomain-prefix].[region].fcapp.run) to access a service and return an .apk file.
Possible causes
For security reasons, requests that use public endpoints of HTTP triggers to access functions that are created on and after June 10, 2024 are blocked.
Solutions
Use the internal endpoint of the HTTP trigger or a custom domain name to return the .apk file.
Method | Procedure |
Internal endpoint of the HTTP trigger (format: https://[subdomain-prefix].[region]-vpc.fcapp.run) |
|
Custom domain name | For more information, see Configure custom domain names. |