‹
Size: a a a
‹
K
withCredentials: true‹
‹
withCredentials: true‹
fd
‹
A
‹
‹
‹
fd
fd
KD
‹
fd
const cors = require("cors");
const express = require('express');
const app = express();
const config = {
port: 3001,
origin: 'http://localhost:3000',
databaseURL: 'mongodb://localhost:27017'
};
app.use(cors({
origin: config.origin,
credentials: true
}));VS
‹
ДВ