In a multisite setup, like our hosting, each site can have its own allowed origins by using the “cors origins” setting. Setting DISCOURSE_CORS_ORIGIN in app.yml will be global to all sites, which probably isn’t what you want in multisite. If you only have one site in a container, then using DISCOURSE_CORS_ORIGIN and “cors origins” will be the same.
neil
(Neil Lalonde)
3
Verwandte Themen
| Thema | Antworten | Aufrufe | Aktivität | |
|---|---|---|---|---|
| No 'Access-Control-Allow-Origin' header is present despite setting DISCOURSE_ENABLE_CORS: true | 7 | 1694 | 28. Oktober 2021 | |
| Set DISCOURSE_ENABLE_CORS for hosted forum | 5 | 2596 | 7. Oktober 2022 | |
| Enable CORS on localhost for DiscourseConnect | 0 | 703 | 12. Januar 2024 | |
| Setup Cross-Origin Resource Sharing (CORS) | 8 | 2227 | 13. Januar 2026 | |
| CORS origins setup does not work | 6 | 2071 | 22. Oktober 2020 |