mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-01-07 00:14:25 +01:00
24 lines
540 B
JavaScript
24 lines
540 B
JavaScript
|
|
const cookie = require('cookie');
|
|
const { CORS_HEADERS } = require('../utils/consts');
|
|
|
|
exports.handler = async (event, context) => {
|
|
const myCookie = cookie.serialize('Authorization', '', {
|
|
secure: true,
|
|
httpOnly: true,
|
|
path: '/',
|
|
maxAge: -1,
|
|
})
|
|
return {
|
|
statusCode: 200,
|
|
|
|
body: JSON.stringify({
|
|
status: 'OK',
|
|
}),
|
|
'headers': {
|
|
'Set-Cookie': myCookie,
|
|
'Cache-Control': 'no-cache',
|
|
...CORS_HEADERS
|
|
}
|
|
}
|
|
}; |