Add Cache-Control: no-store to ALTCHA challenge endpoint
This commit is contained in:
parent
c503d6dd75
commit
5e6b201336
@ -102,6 +102,7 @@ apiRouter.post('/update-status', requireAuth, (req, res) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
apiRouter.get('/altcha', async (req, res) => {
|
apiRouter.get('/altcha', async (req, res) => {
|
||||||
|
res.setHeader('Cache-Control', 'no-store');
|
||||||
try {
|
try {
|
||||||
const challenge = await createChallenge({
|
const challenge = await createChallenge({
|
||||||
algorithm: 'SHA-256',
|
algorithm: 'SHA-256',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user