mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-03 11:01:20 +01:00
fix: #14003, set ACAO header on webfinger responses
This commit is contained in:
@@ -38,6 +38,7 @@ Controller.webfinger = async (req, res) => {
|
|||||||
return res.sendStatus(404);
|
return res.sendStatus(404);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
res.set('Access-Control-Allow-Origin', '*');
|
||||||
res.status(200).json(response);
|
res.status(200).json(response);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
res.sendStatus(404);
|
res.sendStatus(404);
|
||||||
|
|||||||
Reference in New Issue
Block a user