I have been using the referer header server-side to verify an API endpoint, and after a while I thought about it and realized that it can be spoofed. This is a
referer