Crossdomain settings in Google Chrome

前端 未结 3 1851
时光说笑
时光说笑 2020-12-16 23:24

I\'m wondering, in IE & Firefox you\'re able to setup the browser, to allow cross-domain calls.

I can\'t find any option in chrome for that (actually, there are

3条回答
  •  不知归路
    2020-12-16 23:49

    No. Sorry.

    Chrome and Firefox, however do support cross-domain requests via the W3C CORS spec (Cross Origin resource sharing) however the remote host has to enable it. If the remote host supports it explicitly then you don't have to make any changes to your XMLHttpRequest to be able to fetch the content.

提交回复
热议问题