Ajax request error reporting cross-domain

May I ask how to initiate ajax requests in the defined node? When I request, I always report cross-domain errors. The backend engineer also configured the cosr response header, but it still does not help

By ajax I assume you just mean making a HTTP Request FROM Node-RED to an external HTTP Server (using the built in http-request node)?

If yes, then this is probably due to the external HTTP server CORS settings.

Check the server sends the correct Access-Control-Allow-* headers.

1 Like