Hacker News new | ask | show | jobs
by runandcode 3732 days ago
Hey colinbartlett, OP here.

Definitely a good point. Interestingly, I didn't set out intending to use JS to solve this problem. I wanted to use Rack to intercept the request and check the headers and proceed from there. However, when I was playing around with it in Request Bin, I noticed that Genius actually modifies the URL so that there is no reference to them anywhere in the headers. This is generally poor etiquette and forced me to modify my approach.

Thanks for your comment!

1 comments

Click the "reply" link on a comment to reply to that comment.