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
Sujets connexes
| Sujet | Réponses | Vues | Activité | |
|---|---|---|---|---|
| API CORS Headers Incorrect | 11 | 3024 | Juin 8, 2023 | |
| Acess-Control-Allow-Headers CORS Error with API after updating discourse | 9 | 3275 | Juillet 22, 2020 | |
| Having issue accessing the Discourse APIs from react app | 6 | 894 | Avril 10, 2023 | |
| Authenticating using API keys when accessing API through fetch | 4 | 1484 | Novembre 28, 2019 | |
| Getting an error while trying to fetch individual posts | 1 | 904 | Avril 14, 2022 |