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
関連トピック
| トピック | 返信 | 表示 | アクティビティ | |
|---|---|---|---|---|
| No 'Access-Control-Allow-Origin' header is present despite setting DISCOURSE_ENABLE_CORS: true | 7 | 1694 | 2021 年 10 月 28 日 | |
| Set DISCOURSE_ENABLE_CORS for hosted forum | 5 | 2596 | 2022 年 10 月 7 日 | |
| Enable CORS on localhost for DiscourseConnect | 0 | 703 | 2024 年 1 月 12 日 | |
| Setup Cross-Origin Resource Sharing (CORS) | 8 | 2227 | 2026 年 1 月 13 日 | |
| CORS origins setup does not work | 6 | 2071 | 2020 年 10 月 22 日 |