Check if HTTP header exists Expressjs

Is there a way to check if an HTTP header exists in Node.js? I am trying to check for the X-Replit-User-Name header.

Problem solved, if the header doesn’t exist, the return value is a blank string.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.