commit
This commit is contained in:
parent
5fc03eb375
commit
fe2e919b55
1 changed files with 3 additions and 1 deletions
4
index.js
4
index.js
|
@ -12,7 +12,9 @@ const port = config.port || 3000;
|
|||
|
||||
app.use(express.json());
|
||||
app.use(cookieParser());
|
||||
app.use(cors());
|
||||
app.use(cors({
|
||||
origin: "https://joclud.leizour.fr"
|
||||
}));
|
||||
|
||||
function loadRoutes(folderName) {
|
||||
const routesPath = path.join(__dirname, folderName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue