Skip to content

Commit

Permalink
fix: specify notification access control allow origin
Browse files Browse the repository at this point in the history
  • Loading branch information
hookor authored and cuconveniencestore committed May 31, 2024
1 parent e398039 commit 04a4dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/notification-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down

0 comments on commit 04a4dac

Please sign in to comment.