我用下面的腳本訪問我的Basecamp項目的細節,但它仍然會返回以下錯誤訪問的Basecamp項目:使用Ajax調用JavaScript
3210XMLHttpRequest cannot load https://********.basecamphq.com/projects.xml. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://******.****.com' is therefore not allowed access. The response had HTTP status code 405.
所以我可以知道是否有可能訪問basecamp項目使用javascript ajax調用如果是這樣請添加一些示例代碼。
我認爲跨域問題是否存在請訪問http://stackoverflow.com/questions/6871021/how-to-enable-cross-domain-request-on-the-server –