changed all urls
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user