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