1 response.header("Access-Control-Allow-Origin", "*");
2 response.header("Access-Control-Allow-Headers", "Origin, X-Requested-With,Content-Type, Accept");
3 response.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE')
1app.get('/', (req, res) => {
2 req.header('User-Agent')
3})
4// Use the Request.header() method to access
5//one individual request header’s value