This commit is contained in:
adueck 2023-07-27 00:04:54 +04:00
parent 4c6959601c
commit fa0c873a10
1 changed files with 1 additions and 2 deletions

View File

@ -11,11 +11,10 @@ import paymentRouter from "./routers/payment-router";
import dictionaryRouter from "./routers/dictionary-router";
const sameOriginCorsOpts = {
origin: inProd ? /\.lingdocs\.com$/ : "*",
origin: "*", // inProd ? /\.lingdocs\.com$/ : "*",
methods: "GET,HEAD,PUT,PATCH,POST,DELETE",
credentials: true,
};
console.log({ inProd });
const app = express();
// MIDDLEWARE AND SETUP 🔧 //