Score:0

When the server receives a request, does it automatically knows the website is itself?

it flag

My website URL is modified for access from remote systems like this:

//var url = "http://127.0.0.1:5000/dosomething"
var url = "http://www.somewebsite.com/dosomething"

The URL is used by the Python backend and JS front end. When the server receives a request, does it automatically know www.somewebsite.com is itself?

Michael Hampton avatar
cz flag
The hostname the browser used is available to your web application. If you need it for some reason, you would have to explicitly write code to get its value. How you do that varies depending on the language and framework you are using.
cn flag
Unless this is a "I have no clue what I do" - you really need to clarify the question.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.