Removed CORS config
This commit is contained in:
@@ -18,10 +18,6 @@ const pool = mariadb.createPool({
|
||||
});
|
||||
|
||||
const app = express();
|
||||
const corsOptions = {
|
||||
origin: "*",
|
||||
credentials: true,
|
||||
};
|
||||
|
||||
const storage = multer.diskStorage({
|
||||
destination: (_req, _file, cb) => {
|
||||
@@ -34,7 +30,6 @@ const storage = multer.diskStorage({
|
||||
|
||||
const uploads = multer({ storage: storage });
|
||||
|
||||
app.use(cors(corsOptions));
|
||||
app.use(bodyParser.json({ limit: "50mb" }));
|
||||
app.use(bodyParser.urlencoded({ limit: "50mb", extended: true }));
|
||||
app.use(
|
||||
|
||||
Reference in New Issue
Block a user