Skip to content

Commit 01d38f3

Browse files
committed
HARMONY-2317: We do not want to allow cross-origin OAuth cookies so disable that and do not generate the ETag header on the OPTIONS response.
1 parent dfed595 commit 01d38f3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

services/harmony/app/middleware/options.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ const optionsHandler: RequestHandler = (req: HarmonyRequest, res: Response, _nex
2222
'Content-Encoding',
2323
'Content-Disposition',
2424
].join(', '));
25-
res.setHeader('Access-Control-Allow-Credentials', 'true');
2625
res.setHeader('Access-Control-Max-Age', '86400');
27-
res.sendStatus(204);
26+
res.status(204).end();
2827
};
2928

3029
export default optionsHandler;

0 commit comments

Comments
 (0)