weixin_33674976 2015-10-04 14:13 采纳率: 0%
浏览 168

jQuery ajax请求html页面

i want to use jquery client side to load linkedin profile page using this code :

 $.get( "https://dz.linkedin.com/pub/arezki-lebdiri/75/a51/4b5", function( data ) {
      $( ".result" ).html( data );
      alert( "Load was performed." );
    });

and i get this error :

XMLHttpRequest cannot load https://dz.linkedin.com/pub/arezki-lebdiri/75/a51/4b5. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.

so any help please to change 'Access-Control-Allow-Origin' in the browsr

  • 写回答

1条回答 默认 最新

  • weixin_33720186 2015-10-11 20:34
    关注

    just use this chrome extension to allow to you request any site with ajax from any source

    评论

报告相同问题?