diff --git a/backend/middleware/checkDomain.js b/backend/middleware/checkDomain.js index c620f49..48e89fb 100644 --- a/backend/middleware/checkDomain.js +++ b/backend/middleware/checkDomain.js @@ -3,12 +3,11 @@ function checkDomain(req, res, next) { const allowedCollegeDomain = 'gne1.gndec.ac.in'; const allowedVercelDomain ="training-tracker-gndec.vercel.app"; - const allowedOnRenderDomain = "training-tracker-cse.onrender.com"; const origin = req.get('Origin') || req.get('Referer'); if (origin) { const url = new URL(origin); - if (url.hostname === allowedCollegeDomain || url.hostname === allowedVercelDomain || url.hostname === allowedOnRenderDomain) { + if (url.hostname === allowedCollegeDomain || url.hostname === allowedVercelDomain) { return next(); } } @@ -16,4 +15,4 @@ function checkDomain(req, res, next) { res.status(403).json({ message: 'Forbidden' }); } -module.exports = checkDomain; \ No newline at end of file +module.exports = checkDomain;