diff --git a/backend/dist/controllers/userControllers.js b/backend/dist/controllers/userControllers.js
index 47192aa..3376389 100644
--- a/backend/dist/controllers/userControllers.js
+++ b/backend/dist/controllers/userControllers.js
@@ -104,7 +104,7 @@ const registerUser = (0, express_async_handler_1.default)((req, res) => __awaite
const exp = Date.now() + 1000 * 60 * 5;
// @ts-ignore
const token = jsonwebtoken_1.default.sign({ sub: user.user_id, exp }, process.env.SECRET);
- const url = `https://localhost:3000/api/user/verify/${token}`;
+ const url = `https://api-statuscode1.wedevelopers.online/api/user/verify/${token}`;
const htmlContent = `Verify using this link`;
// @ts-ignore
yield (0, sendMail_1.default)(email, htmlContent);
@@ -122,7 +122,7 @@ const registerUser = (0, express_async_handler_1.default)((req, res) => __awaite
const exp = Date.now() + 1000 * 60 * 5;
// @ts-ignore
const token = jsonwebtoken_1.default.sign({ sub: user.user_id, exp }, process.env.SECRET);
- const url = `http://localhost:3000/api/user/verify/${token}`;
+ const url = `https://api-statuscode1.wedevelopers.online/api/user/verify/${token}`;
const htmlContent = `Verify using this link`;
// @ts-ignore
yield (0, sendMail_1.default)(email, htmlContent);
diff --git a/backend/dist/index.js b/backend/dist/index.js
index cbe555f..dd9bc53 100644
--- a/backend/dist/index.js
+++ b/backend/dist/index.js
@@ -14,7 +14,10 @@ const ratingRoute_1 = __importDefault(require("./routes/ratingRoute"));
const app = (0, express_1.default)();
app.use(express_1.default.json());
const corsOptions = {
- origin: "http://localhost:3001",
+ origin: [
+ "http://localhost:3001",
+ "https://app-statuscode1.wedevelopers.online",
+ ],
credentials: true,
};
app.use((0, cors_1.default)(corsOptions));
diff --git a/backend/src/controllers/userControllers.ts b/backend/src/controllers/userControllers.ts
index 9fa2150..5bbd1c7 100644
--- a/backend/src/controllers/userControllers.ts
+++ b/backend/src/controllers/userControllers.ts
@@ -93,7 +93,7 @@ const registerUser = asyncHandler(async (req: Request, res: Response) => {
const exp = Date.now() + 1000 * 60 * 5;
// @ts-ignore
const token = jwt.sign({ sub: user.user_id, exp }, process.env.SECRET);
- const url = `https://localhost:3000/api/user/verify/${token}`;
+ const url = `https://api-statuscode1.wedevelopers.online/api/user/verify/${token}`;
const htmlContent = `Verify using this link`;
// @ts-ignore
await sendMail(email, htmlContent);
@@ -110,7 +110,7 @@ const registerUser = asyncHandler(async (req: Request, res: Response) => {
const exp = Date.now() + 1000 * 60 * 5;
// @ts-ignore
const token = jwt.sign({ sub: user.user_id, exp }, process.env.SECRET);
- const url = `http://localhost:3000/api/user/verify/${token}`;
+ const url = `https://api-statuscode1.wedevelopers.online/api/user/verify/${token}`;
const htmlContent = `Verify using this link`;
// @ts-ignore
await sendMail(email, htmlContent);
diff --git a/backend/src/index.ts b/backend/src/index.ts
index 9d03988..7d0fbdb 100644
--- a/backend/src/index.ts
+++ b/backend/src/index.ts
@@ -13,7 +13,10 @@ import ratingRoutes from "./routes/ratingRoute";
const app = express();
app.use(express.json());
const corsOptions = {
- origin: "http://localhost:3001",
+ origin: [
+ "http://localhost:3001",
+ "https://app-statuscode1.wedevelopers.online",
+ ],
credentials: true,
};
app.use(cors(corsOptions));