Commit 20611974 authored by janithgamage1.ed's avatar janithgamage1.ed

fix: update

parent c4cd4f07
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -23,15 +23,16 @@ import userProgressRoutes from "./routes/userProgress.routes.js";
dotenv.config();
const app = express();
// const corsOptions = {
// origin: 'http://localhost:3000',
// origin: 'http://localhost:3001',
// };
const corsOptions = {
origin: 'http://localhost:3000',
origin: 'http://localhost:3001',
origin: 'https://sign-connect-plus.netlify.app'
};
app.use(bodyParser.json({ limit: "30mb", extended: true }));
app.use(bodyParser.urlencoded({ limit: "30mb", extended: true }));
// app.use(cors(corsOptions));
app.use(cors());
app.use(cors(corsOptions));
// app.use(cors());
//end
app.get("/", (req, res) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment