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 日 |