logoalt Hacker News

thedanglertoday at 12:45 PM1 replyview on HN

Also, can't you tie a key to a domain or IP address to help stop unauthorized usage?


Replies

littlecranky67today at 12:48 PM

Not if its publicly called from Javascript, as your user's browser will make those requests. You neither know their IP addresses, nor is the referer or origin header a safe choice as it can be spoofed outside of a browser.

show 1 reply