Merged PR 1047: added json headers

added json headers

Related work items: #9877
This commit is contained in:
Robert Bond
2023-12-20 12:20:04 +00:00
+3 -1
View File
@@ -144,7 +144,9 @@ const authOptions = (locale, req, res) => {
"verification url API: " + url + "\n",
"============================================================\n"
);
return res.status(200).json({ url: url });
return res
.writeHead(200, { "Content-Type": "application/json" })
.json({ url: url });
},
},
EmailProvider({