API Node.js Express CORS missing allow origin
... / API Node.js Express CORS ...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

API Node.js Express CORS missing allow origin

by
Community Deleted user
Created on 2020-08-07 14:08:45 (edited on 2024-09-04 11:24:46) in Hébergement Cloud Web

Bonjour,

Je viens de déployer une API REST sur un hébergement Cloud Web 1, et les requêtes POST que je produis dans Postman se soldent par un échec au bout d'une minute. Depuis mon navigateur, sur l'application web, la première requête HTTPS (OPTIONS) réussit (204) mais la suivante (POST) échoue. J'ai pourtant bien mis le Header Access-Control-Allow-Origin à "*" pour être sûr que tout est fonctionnel.

Puis-je contourner ce problème / le régler (sans avoir accès au .htaccess, Cloud web 1 oblige) ?

Bonne journée.


Replies are currently disabled for this question.