mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-01 01:51:18 +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);
|
||||
}
|
||||
|
||||
res.set('Access-Control-Allow-Origin', '*');
|
||||
res.status(200).json(response);
|
||||
} catch (e) {
|
||||
res.sendStatus(404);
|
||||
|
||||
Reference in New Issue
Block a user