mafintosh / node-modules

Search for node modules
http://node-modules.com
128 stars 15 forks source link

accessing search results over CORS #29

Closed pketh closed 8 years ago

pketh commented 8 years ago

Hi, Would you consider allowing access to search result json from other domains?

I have an app where I'd love to be able to get npm search results using something like "http://cors.io/?u=http://node-modules.com/search.json?q=#{query}&limit=#{limit}" but trying to do that from my client app gives me a cors error.

If this is a thing you'd be open to, I'd be happy to write the PR to add some CORS support using Access-Control-Allow-Origin: "*"

Thanks for your time!

mafintosh commented 8 years ago

Yea! Feel free to PR that :)

pketh commented 8 years ago

I'm on it!