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 | 8 يونيو 2023 | |
| Acess-Control-Allow-Headers CORS Error with API after updating discourse | 9 | 3275 | 22 يوليو 2020 | |
| Having issue accessing the Discourse APIs from react app | 6 | 894 | 10 أبريل 2023 | |
| Authenticating using API keys when accessing API through fetch | 4 | 1484 | 28 نوفمبر 2019 | |
| Getting an error while trying to fetch individual posts | 1 | 904 | 14 أبريل 2022 |