How to get cookie in php send from Node.js application? I am not fimiliar to php. How to get this cookie creted in nodejs in php?
const express = require('express')
const app = express()
const port = 3000
app.get('/', (req, res) => {
res.setHeader("Set-Cookie","type-test");
res.setHeader("Year",new Date().getFullYear);
res.send('Hello World!')
})
app.listen(port, () => {
console.log(`Example app listening at http://localhost:${port}`)
})