From 04a4dac434293308a2de14b44f63877b343ce4ff Mon Sep 17 00:00:00 2001 From: hookor Date: Fri, 31 May 2024 18:39:27 +0900 Subject: [PATCH] fix: specify notification access control allow origin --- controllers/notification-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/notification-controller.js b/controllers/notification-controller.js index ef7e552..1417bfd 100644 --- a/controllers/notification-controller.js +++ b/controllers/notification-controller.js @@ -6,7 +6,7 @@ exports.retrieveNotifications = async (req, res) => { res.setHeader('Content-Type', 'text/event-stream'); res.setHeader('Cache-Control', 'no-cache'); res.setHeader('Connection', 'keep-alive'); - res.setHeader('Access-Control-Allow-Origin', '*'); + res.setHeader('Access-Control-Allow-Origin', 'https://ddocker.kro.kr'); let intervalId = setInterval(function () { res.write(`event: ping\ndata: ${userId}\n\n`);