changed all urls

This commit is contained in:
2024-02-16 17:35:00 +01:00
parent fb59fb756e
commit 03e4164b97
14 changed files with 31 additions and 28 deletions

View File

@ -15,12 +15,15 @@ import fs from "fs";
//import routes
import Router from "./routes/routes.js";
import clientsideConfig from '~/clientsideConfig.js';
//init express
const app = express();
//setup cors
const corsOptions = {
origin: 'https://localhost:3000',
// origin: `https://localhost:3000`,
origin: `https://${clientsideConfig.url}:${clientsideConfig.port}`,
headers: 'authorization, content-type',
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
credentials: true,