Compare commits

...

8 Commits
main ... test

Author SHA1 Message Date
103b982bde Merge pull request 'main' (#2) from main into test
Reviewed-on: #2
2025-07-15 12:39:47 +00:00
omaroughriss
bcc3c5962b Testing push image
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 29s
2025-07-15 12:37:41 +02:00
omaroughriss
b191e5f7b2 Update port
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 27s
2025-07-03 11:37:45 +02:00
omaroughriss
6f29513951 Update port
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 27s
2025-07-03 11:05:20 +02:00
omaroughriss
030fd09460 Update port
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 27s
2025-07-03 11:02:26 +02:00
omaroughriss
e3d0764932 Update redirect url
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 28s
2025-07-03 10:02:25 +02:00
omaroughriss
34c0b9b2cd Update redirect url
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 27s
2025-07-02 10:32:40 +02:00
omaroughriss
a0e389d50f Add service in cors origins
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 28s
2025-07-01 16:42:59 +02:00

View File

@ -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']
};