Medo Mini Program Trusted Domain Setup
What Is Happening?
The Mini Program needs to connect to a remote server to load, save, update, or delete data.
WeChat only allows Mini Programs to connect to trusted domains. If a domain is not added to the allowed domain list, WeChat will block the request.
In this case, the Mini Program is trying to call:
https://kdadmjcweyivjlnxjtoc.functions.supabase.co
But this domain has not been added to the Mini Program's allowed request domains, so the request is blocked.
What You Need to Do
If You Are Testing the Trial Version
If the Mini Program is still in trial mode, the domain setting may not take effect immediately.
To continue testing, open the Mini Program menu and enable Development Debugging.
This is only for testing. Users of the released Mini Program do not need to do this.
If You Are Preparing for Release
Before releasing the Mini Program, make sure the Supabase domains used by the app are added to the allowed request domain list.
Current domains include:
https://kdadmjcweyivjlnxjtoc.functions.supabase.cohttps://kdadmjcweyivjlnxjtoc.supabase.co
After the domain configuration is updated, submit the Mini Program for review and release it. The released version will then be able to call these APIs normally.
Why This Needs Extra Attention
Medo currently uses Supabase domains directly. These domains may be different for different projects.
This is fine for a small number of Mini Programs, but it can become hard to manage if Medo supports many Mini Programs.
WeChat also has platform limits on how many domains can be configured.
Recommended Long-Term Setup
For a more stable setup, Medo should use one unified backend domain, for example:
https://backend.medo.dev
The Mini Program would only call this Medo domain:
Mini Program -> backend.medo.dev
Then Medo's backend would connect to Supabase:
backend.medo.dev -> Supabase
This makes the Mini Program configuration simpler because users only need to trust one Medo domain, instead of many different Supabase domains.
Simple Summary
The request is failing because the Supabase domain is not trusted by WeChat yet.
For trial testing, enable Development Debugging.
For release, add the Supabase domains to the Mini Program's allowed request domain list and publish a new version.
For the long term, Medo should provide one stable backend domain, such as https://backend.medo.dev, to make domain setup easier.