How can I get the url of the referer in an ajax request?
A file named main.php has jQuery that sends an ajax call to a file named request.php.
Is it possible to somehow figure out the referer when I'm on request.php? To be precise, I want to print the string "main.php" (dynamically) while running request.php.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…