Answers for "ccess to fetch at ' from origin 'http://localhost:3000' has been blocked by cors policy: n"

1

Access to XMLHttpRequest at from origin HTTP localhost:3000 has been blocked by CORS policy

const cors = require('cors');
const corsOptions ={
    origin:'http://localhost:3000', 
    credentials:true,            //access-control-allow-credentials:true
    optionSuccessStatus:200
}
app.use(cors(corsOptions));
Posted by: Guest on March-19-2021

Code answers related to "ccess to fetch at ' from origin 'http://localhost:3000' has been blocked by cors policy: n"

Code answers related to "Javascript"

Browse Popular Code Answers by Language