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
Verwandte Themen
| Thema | Antworten | Aufrufe | Aktivität | |
|---|---|---|---|---|
| API CORS Headers Incorrect | 11 | 3024 | 8. Juni 2023 | |
| Acess-Control-Allow-Headers CORS Error with API after updating discourse | 9 | 3275 | 22. Juli 2020 | |
| Having issue accessing the Discourse APIs from react app | 6 | 894 | 10. April 2023 | |
| Authenticating using API keys when accessing API through fetch | 4 | 1484 | 28. November 2019 | |
| Getting an error while trying to fetch individual posts | 1 | 904 | 14. April 2022 |