Answer the question
In order to leave comments, you need to log in
How to solve cors issue using node api?
Tell me how to solve the issue with a cross-domain request through Api node.
Answer the question
In order to leave comments, you need to log in
Set server CORS permission to localhost:3000, no?
and so on node.js on express I did this:
const cors = require("cors");
app.use(
cors({
origin: 'http://localhost:3000',
credentials: true
})
);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question