Cross domain ajax request

前端 未结 4 844
耶瑟儿~
耶瑟儿~ 2020-11-27 05:57

I want to get the html respond page from the cross domain url.

for this I am using the ajax request as,

 $.ajax({
            type: \'GET\',
                 


        
4条回答
  •  悲&欢浪女
    2020-11-27 06:36

    Check documentation : http://api.jquery.com/jQuery.ajax/

    crossDomain (default: false for same-domain requests, true for cross-domain requests)

    Type: Boolean

    If you wish to force a crossDomain request (such as JSONP) on the same domain, set the value of crossDomain to true. This allows, for example, server-side redirection to another domain. (version added: 1.5)

提交回复
热议问题