Je rencontre une erreur CORS car le serveur attend l’en-tête User-Api-Key. J’examine les en-têtes attendus dans la réponse OPTIONS et c’est bien ce qui y est indiqué. Il existe un sujet similaire ailleurs sur ce forum où un utilisateur rencontrait ce problème lors d’un appel depuis une application JavaScript.
tdekoekkoek
(Trevor de Koekkoek)
5
Sujets connexes
| Sujet | Réponses | Vues | Activité | |
|---|---|---|---|---|
| API CORS Headers Incorrect | 10 | 3082 | Juillet 6, 2020 | |
| Acess-Control-Allow-Headers CORS Error with API after updating discourse | 9 | 3314 | Juillet 22, 2020 | |
| Having issue accessing the Discourse APIs from react app | 6 | 929 | Avril 10, 2023 | |
| Authenticating using API keys when accessing API through fetch | 4 | 1511 | Novembre 28, 2019 | |
| Getting an error while trying to fetch individual posts | 1 | 912 | Avril 14, 2022 |