Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
103b982bde | |||
![]() |
bcc3c5962b | ||
![]() |
b191e5f7b2 | ||
![]() |
6f29513951 | ||
![]() |
030fd09460 | ||
![]() |
e3d0764932 | ||
![]() |
34c0b9b2cd | ||
![]() |
a0e389d50f |
@ -2,13 +2,13 @@ const express = require('express');
|
||||
const cors = require('cors');
|
||||
const fetch = require('node-fetch');
|
||||
|
||||
// Initialisation de l'application Express
|
||||
// Initialisation de l'application
|
||||
const app = express();
|
||||
const PORT = process.env.PORT || 8080;
|
||||
|
||||
// Configuration CORS
|
||||
const corsOptions = {
|
||||
origin: ['http://local.lecoffreio.4nkweb:3000', 'http://localhost:3000'],
|
||||
origin: ['http://local.lecoffreio.4nkweb:3000', 'http://localhost:3000', 'http://lecofrre-front:3000'],
|
||||
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
|
||||
allowedHeaders: ['Content-Type', 'Authorization']
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user