E
E
Egor Telnov2019-08-10 17:37:16
JavaScript
Egor Telnov, 2019-08-10 17:37:16

What is wrong with fetch?

Hello. I understand AJAX requests. Faced such a problem.
There is such a function on node:

module.exports = function(app, db) {
    app.post('/notes', (req, res) => {
        // Здесь будем создавать заметку.
        res.send('Hello');
        console.log('answer sended');
    });
};

I'm trying to fetch this address:
5d4ed66a3023c049613846.jpeg
As a result, I get an error:
5d4ed67f7e121876152525.jpeg
Why does it occur? What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
profesor08, 2019-08-10
@telnov_magic

Memorize https://developer.mozilla.org/ru/docs/Web/HTTP/CORS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question