Sunday, 12 May 2019

(Express) How can I restrict access to route so that data provided from my server is only accessible by my website?

Sorry if the question doesn't make much sense, I'm new to proper web development and I just don't know what the thing I'm looking for is even called.​For example, let's say I have a website: "www.myexaplewebsite.com" and a route: "/getImages/:tag". Anyone would just be able to enter "www.myexaplewebsite.com/getImages/car" as the url and they would get a response from the server with the data. I would like to restrict it so that only my website can request data from that route, for example when someone clicks on a link on the website to view images, without the need for users to log in.

Submitted May 12, 2019 at 04:49PM by RandomlyFish

No comments:

Post a Comment