CORS And URLs
These settings solve many deployment problems when they are set correctly.
OPENPOST_FRONTEND_URL
The public URL users visit in the browser. This is also part of the default CORS allowlist.
OPENPOST_CORS_EXTRA_ORIGINS
Extra origins to allow, as a comma-separated list. Use this if you have alternate domains, admin origins, or a separate dev frontend.
OPENPOST_MEDIA_URL
The public base URL for uploaded media. This must be correct for Threads and should match your reverse proxy path.
Provider callback URLs
These are configured in the provider developer portals and should point back to your public OpenPost domain. They are separate from browser CORS settings.
Common mistakes
OPENPOST_FRONTEND_URLstill points at localhost in productionOPENPOST_MEDIA_URLpoints at an internal hostname- Provider callback URLs still use the local development domain
- Reverse proxy serves a different hostname than the one configured in OAuth apps