How can I query the iTunes search API in javascript?
问题 I am trying to query the App Store for information on a given app, however I keep getting the following error. XMLHttpRequest cannot load https://itunes.apple.com/lookup?id=<some-app-id>. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.<some-website>.co.uk' is therefore not allowed access. The response had HTTP status code 501. The code I'm using to execute the request is as follows. Does anyone know where I may be going wrong? var config = {