I get a CORS error because the server is expecting User-Api-Key. I examine the expected headers in the OPTIONS response and that is what it says. There is a similar topic elsewhere on this forum where a user was experiencing this when calling from a javascript app.
tdekoekkoek
(Trevor de Koekkoek)
5
関連トピック
| トピック | 返信 | 表示 | アクティビティ | |
|---|---|---|---|---|
| API CORS Headers Incorrect | 11 | 3024 | 2023 年 6 月 8 日 | |
| Acess-Control-Allow-Headers CORS Error with API after updating discourse | 9 | 3275 | 2020 年 7 月 22 日 | |
| Having issue accessing the Discourse APIs from react app | 6 | 894 | 2023 年 4 月 10 日 | |
| Authenticating using API keys when accessing API through fetch | 4 | 1484 | 2019 年 11 月 28 日 | |
| Getting an error while trying to fetch individual posts | 1 | 904 | 2022 年 4 月 14 日 |