node.js - Protecting/limiting my API endpoints to server side use -
i new node , web development. working on simple application started , want limit use of endpoints server side calls, i.e. else trying access them gets 403.
however, after researching, found passportjs examples of how protect endpoints, seem overkill small application mine.
am overthinking this, or should looking more basic solution?
how need consume these end points yourself? don't know if looking call 1 file other. need not expose them restful end points in case. create methods module methods (as in node modules). use require syntax reference file dependency.
you need restful end points server side if needs called web application.
Comments
Post a Comment