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.


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