Webflow sync, pageviews & more.
NEW

How can I upload and host the "apple-app-site-association.json" file on Webflow without encountering any issues related to lottie?

TL;DR
  • Host the apple-app-site-association file externally (e.g., Netlify, Vercel, Firebase) at exactly /.well-known/apple-app-site-association with MIME type application/json and no redirects.
  • Use a reverse proxy (e.g., Cloudflare Workers) to serve the file correctly from your domain since Webflow cannot manage path or MIME type requirements.

To host the apple-app-site-association.json file on Webflow, you must work around Webflow's limitations on file hosting—specifically, that it doesn't support serving JSON files at the root level or with the correct application/json MIME type by default.

1. Understand the Requirements

  • Apple expects the apple-app-site-association file to be located at exactly:
    https://yourdomain.com/.well-known/apple-app-site-association
  • No extension (not .json)
  • Must be served with the correct Content-Type: application/json
  • Cannot be redirected or proxied
  • Hosting options like Lottie JSON in Webflow are handled as file downloads with incorrect MIME type or path and will not work

2. Limitations of Hosting JSON on Webflow

  • Webflow doesn't allow placing files at the root (/.well-known/) or changing MIME types.
  • Uploading a .json file via the Webflow Asset Manager is treated as a downloadable asset, not a server-hosted file.

3. Use a Workaround with an External Hosting Service

You need to host the file externally and point to it properly:

  • Use a server or static file hosting provider:
  • GitHub Pages
  • Firebase Hosting
  • Netlify
  • Vercel
  • AWS S3 with CloudFront
  • Ensure correct path and MIME type:
  • File URL must be: https://yourdomain.com/.well-known/apple-app-site-association
  • MIME type must be application/json
  • Set up domain correctly:
  • If you're using a custom domain in Webflow (e.g., yourdomain.com), you'll need to handle /.well-known routing outside Webflow

4. Best Practice: Use a Reverse Proxy

Since Webflow cannot serve this file directly, use a proxy:

  • Set up a reverse proxy in Cloudflare Workers, Netlify functions, or Vercel edge functions
  • Redirect requests from /.well-known/apple-app-site-association to your hosted file
  • Ensure:
  • No redirects, Apple doesn’t follow them
  • Hosted file returns HTTP 200 with the correct application/json content type

If hosting the file correctly is too complex and you're only testing, consider using Firebase Dynamic Links or another platform that abstracts these requirements.

Summary

Webflow cannot correctly host the apple-app-site-association file due to routing and MIME type limitations. To implement Universal Links, host this file externally (e.g., Netlify, Vercel) and point to it with a reverse proxy or DNS setup. Webflow’s built-in asset hosting and Lottie support are not compatible with this specific Apple requirement.

Rate this answer

Other Webflow Questions