commit
This commit is contained in:
parent
fe2e919b55
commit
7ffa46cb5d
1 changed files with 3 additions and 1 deletions
4
index.js
4
index.js
|
@ -13,7 +13,9 @@ const port = config.port || 3000;
|
||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
app.use(cookieParser());
|
app.use(cookieParser());
|
||||||
app.use(cors({
|
app.use(cors({
|
||||||
origin: "https://joclud.leizour.fr"
|
origin: "https://joclud.leizour.fr",
|
||||||
|
methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
|
||||||
|
allowedHeaders: ["Content-Type", "Authorization"]
|
||||||
}));
|
}));
|
||||||
|
|
||||||
function loadRoutes(folderName) {
|
function loadRoutes(folderName) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue