Skip to content

Commit c7c9ff7

Browse files
committed
bug fixed in certificate
1 parent 71e1fea commit c7c9ff7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

course-srv/src/presentation/controllers/courseController/generateCertificateController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const generateCertificateController = (dependencies: IDependencies) => {
4242
"Content-Disposition",
4343
`attachment; filename="${enrollment.courseId.basicDetails.title}_Certificate.pdf"`
4444
);
45-
res.setHeader("Access-Control-Allow-Origin", "http://localhost:5173");
45+
res.setHeader("Access-Control-Allow-Origin", "https://v-learning-client-5r8j.vercel.app");
4646
res.setHeader("Access-Control-Allow-Credentials", "true");
4747
res.setHeader("Access-Control-Expose-Headers", "Content-Disposition");
4848

0 commit comments

Comments
 (0)