Я получаю эту ошибку
(index):1 Access to XMLHttpRequest at 'https://example.com/crm/addlead' from origin 'https://abc.examplehosting.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Я также добавил этот код в свое приложение. js
app.use(function (req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
next();
});
Пожалуйста, подскажите, в чем может быть проблема.