Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to append response header in node in every request

// a middleware with no mount path; gets executed for every request to the app
app.use(function(req, res, next) {
  res.setHeader('charset', 'utf-8')
  next();
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #append #response #header #node #request
ADD COMMENT
Topic
Name
1+3 =