1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
2
Postman does not implement the CORS restriction which are instead a native security browser mechanism.
You should implement CORS at server/backend layer, by allowing the caller (origin) to consume the rest endpoint.
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
Thanks Antonio. We enabled CORS at the resource level in the API. Is that not sufficient? What do you mean by 'implement CORS at server/backend layer'? The backend of the specific method is an ECS service with Node.js runtime.
I meant that for Instance, if you use express as backend server, you should look into enabling cors like this: https://expressjs.com/en/resources/middleware/cors.html. Try out and let me know ;)